Skip to content

Commit

Permalink
support Symfony 2.7 Config and Yaml components without deprecation me…
Browse files Browse the repository at this point in the history
…ssages
  • Loading branch information
relvinhas committed Jun 1, 2015
1 parent 2987523 commit 905109f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Loader/CacheLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function load($resource, $type = null)
}

if (!isset($parameters)) {
require (string) $cache;
require method_exists($cache, 'getPath') ? $cache->getPath() : (string) $cache;
}

return $parameters;
Expand Down
2 changes: 1 addition & 1 deletion src/Loader/YamlFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class YamlFileLoader extends AbstractLoader
*/
protected function read($resource)
{
return Yaml::parse($resource);
return Yaml::parse(file_get_contents($resource));
}

/**
Expand Down

0 comments on commit 905109f

Please sign in to comment.