1 | <?php |
||
14 | class ConfigurationLoader extends FileLoader |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | public function load($resource, $type = null) |
||
20 | { |
||
21 | try { |
||
22 | $path = $this->locator->locate($resource); |
||
23 | return [Yaml::parse(file_get_contents($path)), $path]; |
||
24 | } catch (\InvalidArgumentException $e) { |
||
25 | return []; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function supports($resource, $type = null) |
||
36 | } |
||
37 |