1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-13 12:40:18 +02:00

removed unnecessary checks in Config

This commit is contained in:
Vladimir Grigor 2014-07-27 22:53:49 +03:00
parent eaccc0dab8
commit 6ecaf41336

View File

@ -170,14 +170,10 @@ class Config
{
$environment = $this->getEnvironment();
if(!empty($environment))
{
$configFilePath = getcwd() . '/.mage/config/environment/' . $environment . '.yml';
$parameters = $this->getParameters();
if (empty($environment) && (!empty($parameters) || !$this->isRunInSpecialMode($parameters))) {
throw new RuntimeException('Environment is not set');
}
try {
$this->environmentConfig = $this->loadEnvironment($configFilePath);
} catch (ConfigNotFoundException $e) {
@ -185,6 +181,7 @@ class Config
}
}
}
/**
*