| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function load(array $configs, ContainerBuilder $container) |
||
| 25 | { |
||
| 26 | $configuration = new Configuration(); |
||
| 27 | $config = $this->processConfiguration($configuration, $configs); |
||
| 28 | |||
| 29 | $container->setParameter('postman.name', $config['name']); |
||
| 30 | $container->setParameter('postman.baseUrl', $config['baseUrl']); |
||
| 31 | $container->setParameter('postman.description', $config['description']); |
||
| 32 | $container->setParameter('postman.authentication', $config['authentication']); |
||
| 33 | $container->setParameter('postman.public', $config['public']); |
||
| 34 | $container->setParameter('postman.defaultLocale', $config['defaultLocale']); |
||
| 35 | |||
| 36 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 37 | $loader->load('services.xml'); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |