Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
17 | public function process(ContainerBuilder $container) |
||
18 | { |
||
19 | if (false === $container->has('psysh.shell')) { |
||
20 | return; |
||
21 | } |
||
22 | |||
23 | $services = $container->findTaggedServiceIds('psysh.matcher', true); |
||
24 | if (empty($services)) { |
||
25 | return; |
||
26 | } |
||
27 | |||
28 | $container->getDefinition('psysh.config') |
||
29 | ->addMethodCall('addTabCompletionMatchers', [$this->matchers($services)]); |
||
30 | } |
||
31 | |||
42 |