1 | <?php |
||
22 | abstract class BaseInvalidateCommand extends ContainerAwareCommand |
||
23 | { |
||
24 | /** |
||
25 | * @var CacheManager |
||
26 | */ |
||
27 | private $cacheManager; |
||
28 | |||
29 | /** |
||
30 | * If no cache manager is specified explicitly, fos_http_cache.cache_manager |
||
31 | * is automatically loaded. |
||
32 | * |
||
33 | * @param CacheManager|null $cacheManager The cache manager to talk to |
||
34 | */ |
||
35 | 15 | public function __construct(CacheManager $cacheManager = null) |
|
40 | |||
41 | /** |
||
42 | * Get the configured cache manager, loading fos_http_cache.cache_manager |
||
43 | * from the container if none was specified. |
||
44 | * |
||
45 | * @return CacheManager |
||
46 | */ |
||
47 | 10 | protected function getCacheManager() |
|
55 | } |
||
56 |