Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function process(ContainerBuilder $container) |
||
16 | { |
||
17 | $definition = $container->getDefinition('profiler'); |
||
18 | // Compatibility for Definitions from Symfony 2.7 to 3.3 |
||
19 | if (2 === count($definition->getArguments())) { |
||
20 | $definition->addArgument(true); |
||
21 | } |
||
22 | $definition->addArgument('%sitetheory_profiler_storage.profiler.defaultStorage%'); |
||
23 | $definition->addArgument('%sitetheory_profiler_storage.profiler.class%'); |
||
24 | $definition->addArgument('%sitetheory_profiler_storage.profiler.dsn%'); |
||
25 | $definition->addArgument('%sitetheory_profiler_storage.profiler.username%'); |
||
26 | $definition->addArgument('%sitetheory_profiler_storage.profiler.password%'); |
||
27 | $definition->addArgument('%sitetheory_profiler_storage.profiler.ttl%'); |
||
28 | $definition->setClass('Sitetheory\Bundle\ProfilerStorageBundle\Profiler\Profiler'); |
||
29 | } |
||
31 |