Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
31 | public function process(ContainerBuilder $container) |
||
32 | { |
||
33 | if ($container->has('session_listener')) { |
||
34 | return; |
||
35 | } |
||
36 | |||
37 | if ($container->hasDefinition('fos_http_cache.event_listener.user_context')) { |
||
38 | $contextListener = $container->getDefinition('fos_http_cache.event_listener.user_context'); |
||
39 | $contextListener->setArgument(5, false); |
||
40 | } |
||
41 | $container->removeDefinition('fos_http_cache.user_context.session_listener'); |
||
42 | } |
||
43 | } |
||
44 |