| 1 | <?php |
||
| 16 | class ClearCacheCommand extends Command |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Rebuild |
||
| 21 | */ |
||
| 22 | private $rebuild; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var EventDispatcher |
||
| 26 | */ |
||
| 27 | private $dispatcher; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | 2 | protected function configure() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param Rebuild $rebuild |
||
| 41 | * @param EventDispatcher $dispatcher |
||
| 42 | */ |
||
| 43 | 2 | public function __construct(Rebuild $rebuild, EventDispatcher $dispatcher) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 67 | } |
||
| 68 |
If you suppress an error, we recommend checking for the error condition explicitly: