Skip to content

Commit

Permalink
Allow to enable using the new cache system based on APCu
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed May 24, 2017
1 parent 9a6eb98 commit f0fbe29
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/DI/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,20 @@ public function ignorePhpDocErrors(bool $bool) : ContainerBuilder
return $this;
}

/**
* Enables the use of a cache for the definitions.
*
* @return $this
*/
public function cacheDefinitions(bool $useCache = true) : ContainerBuilder
{
$this->ensureNotLocked();

$this->cache = $useCache;

return $this;
}

/**
* Enables the use of a cache for the definitions.
*
Expand Down

0 comments on commit f0fbe29

Please sign in to comment.