From 3a147a7d1b2237e6f9acc2cb0e6c8c923a3e6fc6 Mon Sep 17 00:00:00 2001 From: harshityadav90 Date: Tue, 7 Oct 2025 11:39:10 +0530 Subject: [PATCH] Updated documentation for custom command create --- src/pages/development/cli-commands/custom.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/development/cli-commands/custom.md b/src/pages/development/cli-commands/custom.md index eaa2a967f..90ae56c14 100644 --- a/src/pages/development/cli-commands/custom.md +++ b/src/pages/development/cli-commands/custom.md @@ -85,9 +85,9 @@ Following is a summary of the process: ```php getOption(self::NAME)) { $output->writeln('Provided name is `' . $name . '`'); } @@ -144,7 +144,7 @@ Following is a summary of the process: )); $exitCode = 1; } - + return $exitCode; } } @@ -152,13 +152,13 @@ Following is a summary of the process: Style the output text by using ``, ``, or `` tags. See [Symfony](https://symfony.com/doc/current/console/coloring.html) documentation for more information about styling. -1. Declare your Command class in `Magento\Framework\Console\CommandListInterface` and configure the command name using dependency injection (`/etc/di.xml`): +1. Declare your Command class in `Magento\Framework\Console\CommandList` and configure the command name using dependency injection (`/etc/di.xml`): ```xml ... - + Magento\CommandExample\Console\Command\SomeCommand