Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
21 | 2 | public function load(array $configs, ContainerBuilder $container) |
|
22 | { |
||
23 | 2 | $loader = new XmlFileLoader( |
|
24 | 2 | $container, |
|
25 | 2 | new FileLocator(__DIR__.'/../Resources/config') |
|
26 | ); |
||
27 | 2 | $loader->load('services.xml'); |
|
28 | 2 | $configuration = new Configuration(); |
|
29 | 2 | $config = $this->processConfiguration($configuration, $configs); |
|
30 | 1 | $definition = $container->getDefinition('ghoubre.firebase_notification_service'); |
|
31 | 1 | $definition->replaceArgument(0, $config['serverKey']); |
|
32 | 1 | $definition->replaceArgument(1, $config['content_available']); |
|
33 | 1 | $definition->replaceArgument(2, $config['time_to_live']); |
|
34 | 1 | } |
|
36 |