Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function load(array $configs, ContainerBuilder $container) |
||
21 | { |
||
22 | $configuration = new Configuration(); |
||
23 | $config = $this->processConfiguration($configuration, $configs); |
||
24 | |||
25 | $container->setParameter('monogramm_proxmox.hostname', $config['hostname']); |
||
26 | $container->setParameter('monogramm_proxmox.username', $config['username']); |
||
27 | $container->setParameter('monogramm_proxmox.password', $config['password']); |
||
28 | $container->setParameter('monogramm_proxmox.realm', $config['realm']); |
||
29 | $container->setParameter('monogramm_proxmox.port', $config['port']); |
||
30 | |||
31 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
32 | $loader->load('services.yml'); |
||
33 | } |
||
35 |