Skip to content

Commit dee0362

Browse files
committed
Register cache commands in Container #1
1 parent 162ef32 commit dee0362

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

config/services/cache.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#services:
2-
# cache_context_debug:
3-
# class: Drupal\Console\Command\Cache\ContextDebugCommand
4-
# tags:
5-
# - { name: console.command }
6-
# cache_rebuild:
7-
# class: Drupal\Console\Command\Cache\RebuildCommand
8-
# tags:
9-
# - { name: console.command }
1+
services:
2+
cache_context_debug:
3+
class: Drupal\Console\Command\Cache\ContextDebugCommand
4+
tags:
5+
- { name: console.command }
6+
cache_rebuild:
7+
class: Drupal\Console\Command\Cache\RebuildCommand
8+
tags:
9+
- { name: console.command }

src/Command/Cache/ContextDebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212
use Symfony\Component\Console\Command\Command;
13-
use Drupal\Console\Command\Shared\ContainerAwareCommandTrait;
13+
use Drupal\Console\Command\Shared\CommandTrait;
1414
use Drupal\Console\Style\DrupalStyle;
1515

1616
/**
@@ -20,7 +20,7 @@
2020
*/
2121
class ContextDebugCommand extends Command
2222
{
23-
use ContainerAwareCommandTrait;
23+
use CommandTrait;
2424

2525
/**
2626
* {@inheritdoc}

src/Command/Cache/RebuildCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313
use Symfony\Component\Console\Command\Command;
14-
use Drupal\Console\Command\Shared\ContainerAwareCommandTrait;
14+
use Drupal\Console\Command\Shared\CommandTrait;
1515
use Drupal\Console\Style\DrupalStyle;
1616

1717
/**
@@ -20,7 +20,7 @@
2020
*/
2121
class RebuildCommand extends Command
2222
{
23-
use ContainerAwareCommandTrait;
23+
use CommandTrait;
2424

2525
/**
2626
* {@inheritdoc}

0 commit comments

Comments
 (0)