コード例 #1
0
ファイル: YamlLoader.php プロジェクト: requtize/config
 /**
  * {@inheritdoc}
  */
 public function __construct($filepath)
 {
     parent::__construct($filepath);
     if (!class_exists('Spyc')) {
         throw new RuntimeException('Spyc library must be installed.');
     }
 }
コード例 #2
0
ファイル: IniLoader.php プロジェクト: requtize/config
 /**
  * Constructor.
  * @param string  $filepath      Configuration filepath to parse.
  * @param boolean $parseSections Parser should parse INI sections?
  */
 public function __construct($filepath, $parseSections = true)
 {
     $this->parseSections = $parseSections;
     parent::__construct($filepath);
 }