/** * Constructor. * * @param string $cachePath * @param boolean $cacheEnabled * @param string|array $paths A path or an array of paths where to look for resources */ public function __construct($cachePath, $cacheEnabled, $paths = array()) { $this->cachePath = $cachePath; $this->cacheEnabled = (bool) $cacheEnabled; if (true === $this->cacheEnabled && file_exists($this->cachePath)) { $this->skipConfig = true; $this->mergedConfig = (require $this->cachePath); } parent::__construct($paths); }