Skip to content

Commit

Permalink
Merge pull request #7 from relvinhas/master
Browse files Browse the repository at this point in the history
support Symfony 2.7 Config and Yaml components
  • Loading branch information
henrikbjorn committed Jun 13, 2015
2 parents 2987523 + 86ccfdf commit e8a09a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ php:
- 5.6
- 7.0
- hhvm
- hhvm-nightly

matrix:
allow_failures:
Expand Down
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 e8a09a7

Please sign in to comment.