public static function getInstance() { if (self::$parser == null) { self::$parser = new Parser(); } return self::$parser; }
public function __construct($name = NULL, array $data = array(), $dataName = '') { $this->testData = YamlReader::getConfig(dirname(__FILE__) . "/TestPaczkomatDataProvider"); parent::__construct($name, $data, $dataName); }
public function __construct($name = NULL, array $data = array(), $dataName = '') { $this->conf = YamlReader::getConfig("config"); parent::__construct($name, $data, $dataName); }
/** * 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); }