Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct($filepath)
 {
     parent::__construct($filepath);
     if (!class_exists('Spyc')) {
         throw new RuntimeException('Spyc library must be installed.');
     }
 }
Beispiel #2
0
 /**
  * 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);
 }