Compatibility with symfony/yaml 3
This commit is contained in:
parent
bbb05b0e3b
commit
73da787f77
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ Class Config
|
|||
*/
|
||||
private function __construct()
|
||||
{
|
||||
$yaml = Yaml::parse(__DIR__.'/../config.yml');
|
||||
$yaml = Yaml::parse(file_get_contents(__DIR__.'/../config.yml'));
|
||||
if (isset($yaml) && is_array($yaml)) {
|
||||
foreach ($yaml as $param=>$value) {
|
||||
if (isset($this->$param)) {
|
||||
|
|
Loading…
Reference in a new issue