protected function CachedContainerBuilder::setCache in Service Container 7.2
Same name and namespace in other branches
- 7 src/DependencyInjection/CachedContainerBuilder.php \Drupal\service_container\DependencyInjection\CachedContainerBuilder::setCache()
Caches the builded container definition.
Parameters
array: The container definition array.
1 call to CachedContainerBuilder::setCache()
- CachedContainerBuilder::getContainerDefinition in src/DependencyInjection/ CachedContainerBuilder.php 
- Returns the fully build container definition.
File
- src/DependencyInjection/ CachedContainerBuilder.php, line 120 
- Contains \Drupal\service_container\DependencyInjection\CachedContainerBuilder
Class
- CachedContainerBuilder
- CachedContainerBuilder retrieves the container definition from cache or builds it.
Namespace
Drupal\service_container\DependencyInjectionCode
protected function setCache(array $definition) {
  $this->cache
    ->set($this
    ->getCacheId(), $definition);
  $this->cachedDefinition = $definition;
}