Skip to content
Permalink
Browse files

[console] Added the ContainerAwareCommand extension to commands that …

…have services (#4034)
  • Loading branch information...
harold20 authored and enzolutions committed May 14, 2019
1 parent b0a15c9 commit 8b2753d48bbee7f3810d2516989a6ab1c9beac41
@@ -10,7 +10,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Generator\AjaxCommandGenerator;
@@ -27,7 +26,6 @@
class AjaxCommand extends Command
{
use ModuleTrait;
use ServicesTrait;
use ConfirmationTrait;
/**
@@ -11,7 +11,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Generator\AuthenticationProviderGenerator;
@@ -21,7 +20,6 @@
class AuthenticationProviderCommand extends Command
{
use ServicesTrait;
use ModuleTrait;
use ConfirmationTrait;
@@ -10,7 +10,7 @@
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Generator\CacheContextGenerator;
@@ -20,7 +20,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class CacheContextCommand extends Command
class CacheContextCommand extends ContainerAwareCommand
{
use ModuleTrait;
use ConfirmationTrait;
@@ -11,7 +11,7 @@
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ExtensionTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Generator\CommandGenerator;
use Drupal\Console\Extension\Manager;
@@ -21,7 +21,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class CommandCommand extends Command
class CommandCommand extends ContainerAwareCommand
{
use ConfirmationTrait;
use ServicesTrait;
@@ -11,7 +11,7 @@
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Generator\ControllerGenerator;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Command\Shared\InputTrait;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Core\Utils\StringConverter;
@@ -22,7 +22,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class ControllerCommand extends Command
class ControllerCommand extends ContainerAwareCommand
{
use ModuleTrait;
use ServicesTrait;
@@ -13,15 +13,13 @@
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Generator\EntityBundleGenerator;
use Drupal\Console\Extension\Manager;
use Drupal\Console\Utils\Validator;
class EntityBundleCommand extends Command
{
use ModuleTrait;
use ServicesTrait;
use ConfirmationTrait;
/**
@@ -11,7 +11,7 @@
use Drupal\Console\Command\Shared\EventsTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Extension\Manager;
@@ -22,7 +22,7 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class EventSubscriberCommand extends Command
class EventSubscriberCommand extends ContainerAwareCommand
{
use EventsTrait;
use ServicesTrait;
@@ -12,7 +12,6 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Generator\FormAlterGenerator;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\FormTrait;
use Drupal\Console\Command\Shared\ConfirmationTrait;
@@ -32,7 +31,6 @@ class FormAlterCommand extends Command
use ArrayInputTrait;
use FormTrait;
use ModuleTrait;
use ServicesTrait;
/**
* @var Manager
@@ -12,7 +12,7 @@
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\MenuTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Generator\FormGenerator;
@@ -25,7 +25,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
abstract class FormCommand extends Command
abstract class FormCommand extends ContainerAwareCommand
{
use ArrayInputTrait;
use FormTrait;
@@ -12,7 +12,7 @@
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Generator\PluginBlockGenerator;
@@ -25,7 +25,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class PluginBlockCommand extends Command
class PluginBlockCommand extends ContainerAwareCommand
{
use ArrayInputTrait;
use ServicesTrait;
@@ -11,7 +11,7 @@
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Generator\PluginMailGenerator;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Extension\Manager;
@@ -25,7 +25,7 @@
*
* @package Drupal\Console\Command\Generate
*/
class PluginMailCommand extends Command
class PluginMailCommand extends ContainerAwareCommand
{
use ServicesTrait;
use ModuleTrait;
@@ -10,7 +10,6 @@
use Drupal\Console\Command\Shared\ArrayInputTrait;
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Core\Utils\ChainQueue;
@@ -32,7 +31,6 @@ class PluginRulesActionCommand extends Command
use ArrayInputTrait;
use ConfirmationTrait;
use ModuleTrait;
use ServicesTrait;
/**
* @var Manager
@@ -10,7 +10,6 @@
use Drupal\Console\Command\Shared\ArrayInputTrait;
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Core\Utils\ChainQueue;
@@ -32,7 +31,6 @@ class PluginRulesConditionCommand extends Command
use ArrayInputTrait;
use ConfirmationTrait;
use ModuleTrait;
use ServicesTrait;
/**
* @var Manager
@@ -9,7 +9,6 @@
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Core\Utils\ChainQueue;
@@ -30,7 +29,6 @@ class PluginRulesDataprocessorCommand extends Command
use ConfirmationTrait;
use ModuleTrait;
use ServicesTrait;
/**
* @var Manager
@@ -12,7 +12,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Extension\Manager;
@@ -25,7 +24,6 @@
*/
class PluginTypeAnnotationCommand extends Command
{
use ServicesTrait;
use ModuleTrait;
/**
@@ -12,7 +12,6 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Extension\Manager;
@@ -25,7 +24,6 @@
*/
class PluginTypeYamlCommand extends Command
{
use ServicesTrait;
use ModuleTrait;
/**
@@ -9,7 +9,7 @@
use Drupal\Console\Command\Shared\ConfirmationTrait;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ServicesTrait;
use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Command\ContainerAwareCommand;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Core\Utils\StringConverter;
use Drupal\Console\Extension\Manager;
@@ -25,7 +25,7 @@
*
* @package Drupal\Console\Command\Generate
*/
class TwigExtensionCommand extends Command
class TwigExtensionCommand extends ContainerAwareCommand
{
use ModuleTrait;
use ServicesTrait;

0 comments on commit 8b2753d

Please sign in to comment.
You can’t perform that action at this time.