| 1 | <?php |
||
| 16 | class CacheConfig extends InjectableConfig |
||
| 17 | { |
||
| 18 | use AliasTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Configuration section. |
||
| 22 | */ |
||
| 23 | const CONFIG = 'cache'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $config = [ |
||
| 29 | 'store' => '', |
||
| 30 | 'stores' => [] |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function defaultStore() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $store |
||
| 43 | * @return bool |
||
| 44 | */ |
||
| 45 | public function hasStore($store) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $store |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function storeClass($store) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param string $store |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | public function storeOptions($store) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Detect store ID based on provided store class. |
||
| 75 | * |
||
| 76 | * @param \ReflectionClass $class |
||
| 77 | * @return string|null |
||
| 78 | */ |
||
| 79 | public function detectStore(\ReflectionClass $class) |
||
| 89 | } |