public function CachedContainerBuilder::reset in Service Container 7
Same name and namespace in other branches
- 7.2 src/DependencyInjection/CachedContainerBuilder.php \Drupal\service_container\DependencyInjection\CachedContainerBuilder::reset()
Reset the internal cache.
Note: This is just thought for tests.
File
- src/
DependencyInjection/ CachedContainerBuilder.php, line 130 - Contains \Drupal\service_container\DependencyInjection\CachedContainerBuilder
Class
- CachedContainerBuilder
- CachedContainerBuilder retrieves the container definition from cache or builds it.
Namespace
Drupal\service_container\DependencyInjectionCode
public function reset() {
$this->cachedDefinition = NULL;
$this->cache
->clear($this
->getCacheId());
}