Пример #1
0
 public function mergeOptionFile($path, $recursive = false, $reverse = false)
 {
     $this->mergeOptions(ArrayUtil::fromFile($path), $recursive, $reverse);
     return $this;
 }
Пример #2
0
 /**
  * Loads a collection from a given file name
  *
  * json => json_decode
  * php => include
  * yml? => Tale\Yaml\Parser
  * xml => Tale\Dom\Xml\Parser
  *
  * @param string $path The path of the collection file to load
  *
  * @return static The config object generated from the passed file
  */
 public static function fromFile($path)
 {
     return new static(ArrayUtil::fromFile($path));
 }