Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$parser == null) {
         self::$parser = new Parser();
     }
     return self::$parser;
 }
Ejemplo n.º 2
0
 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     $this->testData = YamlReader::getConfig(dirname(__FILE__) . "/TestPaczkomatDataProvider");
     parent::__construct($name, $data, $dataName);
 }
Ejemplo n.º 3
0
 public function __construct($name = NULL, array $data = array(), $dataName = '')
 {
     $this->conf = YamlReader::getConfig("config");
     parent::__construct($name, $data, $dataName);
 }
Ejemplo n.º 4
0
 /**
  * Returns config applied gettext.
  *
  * @param string $key The identifier to read from.  If the key has a . it will be treated
  *   as a plugin prefix.
  * @return array Parsed configuration values.
  * @throws ConfigureException when files doesn't exist or when files contain '..' as this could lead to abusive reads.
  */
 public function read($key)
 {
     $config = parent::read($key);
     return $this->applyGettext($config, $this->domain);
 }