/** * Retrieve settings for all cache front-ends known to the system * * @return array Format: array('<frontend_id>' => array(<cache_settings>), ...) */ protected function _getCacheSettings() { /* * Merging is intentionally implemented through array_merge() instead of array_replace_recursive() * to avoid "inheritance" of the default settings that become irrelevant as soon as cache storage type changes */ return array_merge($this->_frontendSettings, $this->_arguments->getCacheFrontendSettings()); }
public function testGetCacheFrontendSettings() { $this->assertEquals(self::$fixtureConfig['cache']['frontend'], $this->_arguments->getCacheFrontendSettings()); $this->assertEquals(self::$fixtureConfigMerged['cache']['frontend'], $this->_argumentsMerged->getCacheFrontendSettings()); }
/** * {@inheritdoc} */ public function getCacheFrontendSettings() { return $this->subject->getCacheFrontendSettings(); }