Compatibility with symfony/yaml 3

This commit is contained in:
Pierre Rudloff 2015-12-19 00:53:05 +01:00
parent bbb05b0e3b
commit 73da787f77
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {