Exemplo n.º 1
0
 /**
  * @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;
 }
Exemplo n.º 2
0
 /**
  * @param bool $withDefaults
  * @return mixed
  */
 public function load($withDefaults = false)
 {
     $this->withDefaults = $withDefaults;
     return parent::load();
 }