/** * @param string $cacheFolder Cache folder to be used. * @param array $files List of files as returned from ConfigFileFinder class. * @param callable $blueprints Lazy load function for blueprints. * @throws \BadMethodCallException */ public function __construct($cacheFolder, array $files, callable $blueprints = null) { if (!$blueprints) { throw new \BadMethodCallException('You cannot instantiate configuration without blueprints.'); } parent::__construct($cacheFolder, $files); $this->callable = $blueprints; }
/** * @param bool $withDefaults * @return mixed */ public function load($withDefaults = false) { $this->withDefaults = $withDefaults; return parent::load(); }