/** * Constructor for i18n'ed Yaml. * * @param mixed $domain null or string domain name * @param string $path The path to read config files from. Defaults to CONFIGS * @param string $baseKey If true, assoc key was applied to parsed array with specific key. * @throws ConfigureException when Spyc class doesn't exsist or specified path was wrong. */ public function __construct($domain = null, $path = null, $baseKey = null) { if (is_array($domain)) { extract($domain); } parent::__construct($path, $baseKey); if (isset($domain) && !is_array($domain)) { $this->domain = $domain; } }