X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FDevelop%2FExampleContainerAwareCommand.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FDevelop%2FExampleContainerAwareCommand.php;h=0000000000000000000000000000000000000000;hp=0028bb1a565516a6939cd11679c0681298b5cf3e;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/drupal/console/src/Command/Develop/ExampleContainerAwareCommand.php b/vendor/drupal/console/src/Command/Develop/ExampleContainerAwareCommand.php deleted file mode 100644 index 0028bb1a5..000000000 --- a/vendor/drupal/console/src/Command/Develop/ExampleContainerAwareCommand.php +++ /dev/null @@ -1,92 +0,0 @@ -setName('develop:example:container:aware'); - } - - /** - * {@inheritdoc} - */ - protected function interact(InputInterface $input, OutputInterface $output) - { - } - - /** - * {@inheritdoc} - */ - protected function execute(InputInterface $input, OutputInterface $output) - { - /* Register your command as a service - * - * Make sure you register your command class at - * config/services/namespace.yml file and add the `drupal.command` tag. - * - * develop_example_container_aware: - * class: Drupal\Console\Command\Develop\ExampleContainerAwareCommand - * tags: - * - { name: drupal.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. - * - * Drupal Console provides the DrupalStyle helper class: - */ - $io = new DrupalStyle($input, $output); - $io->simple('This text could be translatable by'); - $io->simple('adding a YAML file at "config/translations/LANGUAGE/command.name.yml"'); - - /** - * By using ContainerAwareCommandTrait on your class for the command - * (instead of the more basic CommandTrait), you have access to - * the service container. - * - * In other words, you can access to any configured Drupal service - * using the provided get method. - * - * $this->get('entity_type.manager'); - * - * Reading user input argument - * $input->getArgument('ARGUMENT_NAME'); - * - * Reading user input option - * $input->getOption('OPTION_NAME'); - */ - } -}