/** * Sets the status cache * * The cache must be set before initializing the Reflection Service * * @param \TYPO3\Flow\Cache\Frontend\StringFrontend $cache Cache for the reflection service * @return void */ public function setStatusCache(StringFrontend $cache) { $this->statusCache = $cache; $backend = $this->statusCache->getBackend(); if (is_callable(['initializeObject', $backend])) { $backend->initializeObject(); } }
/** * Sets the status cache * * The cache must be set before initializing the Reflection Service * * @param \TYPO3\Flow\Cache\Frontend\StringFrontend $cache Cache for the reflection service * @return void */ public function setStatusCache(StringFrontend $cache) { $this->statusCache = $cache; $this->statusCache->getBackend()->initializeObject(); }