| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 3 | public function process(ContainerBuilder $container): void |
|
| 30 | { |
||
| 31 | 3 | if ($this->environment !== 'dev') { |
|
| 32 | 2 | return; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | $serviceId = CalcService::class; |
|
| 36 | 1 | $debugService = new Definition( |
|
| 37 | 1 | DebugCalcService::class, |
|
| 38 | [ |
||
| 39 | 1 | new Reference(DebugLogger::class), |
|
| 40 | 1 | $container->getDefinition(TileHandlerCollector::class), |
|
| 41 | 1 | $container->getParameter('max_steps'), |
|
| 42 | ] |
||
| 43 | ); |
||
| 44 | |||
| 45 | 1 | $container->setDefinition($serviceId, $debugService); |
|
| 46 | 1 | } |
|
| 48 |