Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 4.125 |
Changes | 0 |
1 | <?php |
||
25 | 1 | public function process(ContainerBuilder $container) |
|
26 | { |
||
27 | /* @var Definition $def */ |
||
28 | 1 | if (!$container->hasDefinition('php_translation.data_collector')) { |
|
29 | 1 | return; |
|
30 | } |
||
31 | |||
32 | if (!$container->hasDefinition('translator.data_collector')) { |
||
33 | throw new \LogicException('[PHP-Translation] To integrate with the Symfony profiler you first need to enable it. Please set framework.translator.enabled: true'); |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 |