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