getConfFileFromEnvName(self::MAIN_ENV_NAME); $this->installed = true; $this->environnement = $envName; $confHandler = new Configuration\EnvironnementHandler($specifications, $parser); $this->configuration = $confHandler->handle($envName); } catch(\Exception $e) { $this->installed = false; } } /** * Return the current used environnement * * @return string */ public function getEnvironnement() { return $this->environnement; } /** * Return the DBAL Doctrine configuration * * @return Array */ public function getDbalConf() { return (array) $this->configuration['doctrine']['dbal'] ?: null; } /** * Tell if the application is installed * * @return boolean */ public function isInstalled() { return $this->installed; } public function get($key) { return isset($this->configuration[$key]) ? $this->configuration[$key]: null; } /** * Return the configuration * @return Array|null */ public function getConfiguration() { return $this->configuration; } }