Total Complexity | 2 |
Total Lines | 9 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class VoterCompilerPass implements CompilerPassInterface |
||
18 | { |
||
19 | public function process(ContainerBuilder $container) |
||
20 | { |
||
21 | $voterContainer = $container->findDefinition(VoterContainer::class); |
||
22 | $services = $container->findTaggedServiceIds('everlution.match_voter'); |
||
23 | |||
24 | foreach ($services as $id => $tags) { |
||
25 | $voterContainer->addMethodCall('addVoter', [new Reference($id)]); |
||
26 | } |
||
29 |