Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function load(array $configs, ContainerBuilder $container) |
||
16 | { |
||
17 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
18 | $loader->load('services.yml'); |
||
19 | |||
20 | $config = $this->processConfiguration(new Configuration(), $configs); |
||
21 | |||
22 | $container->setParameter($this->getAlias().'.key', $config['key']); |
||
23 | $container->setParameter($this->getAlias().'.version', $config['version']); |
||
24 | $container->setParameter($this->getAlias().'.lang', $config['lang']); |
||
25 | $container->setParameter($this->getAlias().'.kind', $config['kind']); |
||
26 | } |
||
27 | } |