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