You are here

public function CachedContainerBuilder::reset in Service Container 7.2

Same name and namespace in other branches
  1. 7 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\DependencyInjection

Code

public function reset() {
  $this->cachedDefinition = NULL;
  $this->cache
    ->clear($this
    ->getCacheId());
}