/** * Gets the 'cache_factory' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Drupal\Core\Cache\CacheFactory A Drupal\Core\Cache\CacheFactory instance. */ protected function getCacheFactoryService() { $this->services['cache_factory'] = $instance = new \Drupal\Core\Cache\CacheFactory($this->get('settings'), array('bootstrap' => 'cache.backend.chainedfast', 'config' => 'cache.backend.chainedfast', 'discovery' => 'cache.backend.chainedfast')); $instance->setContainer($this); $instance->_serviceId = 'cache_factory'; return $instance; }
/** * Gets the 'cache_factory' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Drupal\Core\Cache\CacheFactory A Drupal\Core\Cache\CacheFactory instance. */ protected function getCacheFactoryService() { $this->services['cache_factory'] = $instance = new \Drupal\Core\Cache\CacheFactory($this->get('settings')); $instance->setContainer($this); return $instance; }