| 1 | <?php |
||
| 9 | class CacheClearController extends AbstractConsoleController |
||
| 10 | { |
||
| 11 | use ServiceTrait; |
||
| 12 | |||
| 13 | /** @var StorageInterface */ |
||
| 14 | protected $storage; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param StorageInterface $storage |
||
| 18 | */ |
||
| 19 | 4 | public function __construct(StorageInterface $storage) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Clear the cache. |
||
| 26 | * |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | 3 | public function indexAction() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $fqcn |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | 1 | private function flushOne($fqcn) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | 2 | private function flushAll() |
|
| 62 | } |
||
| 63 |