Skip to content

Commit e8a09a7

Browse files
committed
Merge pull request #7 from relvinhas/master
support Symfony 2.7 Config and Yaml components
2 parents 2987523 + 86ccfdf commit e8a09a7

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ php:
66
- 5.6
77
- 7.0
88
- hhvm
9-
- hhvm-nightly
109

1110
matrix:
1211
allow_failures:

src/Loader/CacheLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function load($resource, $type = null)
5858
}
5959

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

6464
return $parameters;

src/Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class YamlFileLoader extends AbstractLoader
1515
*/
1616
protected function read($resource)
1717
{
18-
return Yaml::parse($resource);
18+
return Yaml::parse(file_get_contents($resource));
1919
}
2020

2121
/**

0 commit comments

Comments
 (0)