Skip to content

Commit fe6c8ea

Browse files
authored
[console] Extend base commands. (#3457)
1 parent 17892ba commit fe6c8ea

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/Command/Cache/RebuildCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313
use Symfony\Component\HttpFoundation\RequestStack;
14-
use Symfony\Component\Console\Command\Command;
15-
use Drupal\Console\Core\Command\Shared\CommandTrait;
14+
use Drupal\Console\Core\Command\Command;
1615
use Drupal\Console\Utils\DrupalApi;
1716
use Drupal\Console\Utils\Site;
1817
use Drupal\Console\Core\Style\DrupalStyle;
@@ -24,8 +23,6 @@
2423
*/
2524
class RebuildCommand extends Command
2625
{
27-
use CommandTrait;
28-
2926
/**
3027
* @var DrupalApi
3128
*/

src/Command/Debug/ContainerCommand.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,17 @@
1111
use Symfony\Component\Console\Output\OutputInterface;
1212
use Symfony\Component\Console\Input\InputArgument;
1313
use Symfony\Component\Console\Input\InputOption;
14-
use Symfony\Component\Console\Command\Command;
14+
use Drupal\Console\Core\Command\ContainerAwareCommand;
1515
use Symfony\Component\Yaml\Yaml;
16-
use Drupal\Console\Core\Command\Shared\ContainerAwareCommandTrait;
1716
use Drupal\Console\Core\Style\DrupalStyle;
1817

1918
/**
2019
* Class ContainerCommand
2120
*
2221
* @package Drupal\Console\Command\Debug
2322
*/
24-
class ContainerCommand extends Command
23+
class ContainerCommand extends ContainerAwareCommand
2524
{
26-
use ContainerAwareCommandTrait;
27-
2825
/**
2926
* {@inheritdoc}
3027
*/

0 commit comments

Comments
 (0)