Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
 public function testGetCacheFrontendSettings()
 {
     $this->assertEquals(self::$fixtureConfig['cache']['frontend'], $this->_arguments->getCacheFrontendSettings());
     $this->assertEquals(self::$fixtureConfigMerged['cache']['frontend'], $this->_argumentsMerged->getCacheFrontendSettings());
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function getCacheFrontendSettings()
 {
     return $this->subject->getCacheFrontendSettings();
 }