1 | <?php |
||
24 | class ConfigurationServicesUtility implements SingletonInterface |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * @var ConfigurationServicesUtility |
||
29 | */ |
||
30 | protected static $instance; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $backendCache; |
||
36 | |||
37 | /** |
||
38 | * Returns an instance of this class. |
||
39 | * |
||
40 | * @return ConfigurationServicesUtility |
||
41 | */ |
||
42 | public static function getInstance() |
||
50 | |||
51 | /** |
||
52 | * Will add the cache service configured with the TypoScript backend cache |
||
53 | * type parameter. |
||
54 | * |
||
55 | * @param ServiceFactory $serviceFactory |
||
56 | */ |
||
57 | public function addCacheServiceToServiceFactory(ServiceFactory $serviceFactory) |
||
63 | |||
64 | /** |
||
65 | * Returns the backend cache type configured in TypoScript at the path |
||
66 | * `settings.defaultBackendCache`. |
||
67 | * |
||
68 | * @return string |
||
69 | * @throws \Exception |
||
70 | */ |
||
71 | protected function getBackendCache() |
||
89 | } |
||
90 |