mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-16 20:45:02 +02:00
update defaults configuration
This commit is contained in:
parent
05f07474eb
commit
edf9c86890
|
@ -157,18 +157,13 @@ class Config
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the default deployment configuration from general configuration
|
* Returns the default environment configuration from general configuration
|
||||||
*
|
*
|
||||||
* @return array the default deployment configuration
|
* @return array the default environment configuration
|
||||||
*/
|
*/
|
||||||
protected function getDefaultEnvironment() {
|
protected function getDefaultEnvironment() {
|
||||||
$defaults = $this->general('defaults', null);
|
$defaults = $this->general('defaults', null);
|
||||||
|
return !empty($defaults) ? $defaults : array();
|
||||||
if(!empty($defaults) && array_key_exists('deployment', $defaults)) {
|
|
||||||
return $defaults['deployment'];
|
|
||||||
}
|
|
||||||
|
|
||||||
return array();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue