Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/Command/Develop/ExampleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExampleCommand extends Command
*/
protected function configure()
{
$this->setName('example');
$this->setName('develop:example');
}

/**
Expand All @@ -43,19 +43,17 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
/* Register your command as a service
*
* Make sure you register your command class at services.yml file
* and add the `console.command` tag.
* Make sure you register your command class at
* config/services/namespace.yml file and add the `console.command` tag.
*
* example:
* develop_example:
* class: Drupal\Console\Command\Develop\ExampleCommand
* tags:
* - { name: console.command }
*
* NOTE: Make the proper changes on the namespace and class
* according your new command.
*/

/**
*
* DrupalConsole extends the SymfonyStyle class to provide
* an standardized Output Formatting Style.
*
Expand Down
12 changes: 5 additions & 7 deletions src/Command/Develop/ExampleContainerAwareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExampleContainerAwareCommand extends Command
*/
protected function configure()
{
$this->setName('example:container:aware');
$this->setName('develop:example:container:aware');
}

/**
Expand All @@ -43,19 +43,17 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
/* Register your command as a service
*
* Make sure you register your command class at services.yml file
* and add the `console.command` tag.
* Make sure you register your command class at
* config/services/namespace.yml file and add the `console.command` tag.
*
* example_container_aware:
* develop_example_container_aware:
* class: Drupal\Console\Command\Develop\ExampleContainerAwareCommand
* tags:
* - { name: console.command }
*
* NOTE: Make the proper changes on the namespace and class
* according your new command.
*/

/**
*
* DrupalConsole extends the SymfonyStyle class to provide
* an standardized Output Formatting Style.
*
Expand Down