Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
32 | 1 | public function build(ContainerBuilder $container) |
|
33 | { |
||
34 | 1 | $annotationReader = new AnnotationReader(); |
|
35 | 1 | $autowiringClassMap = new ClassMultiMap($container); |
|
36 | |||
37 | 1 | $container->addCompilerPass( |
|
38 | 1 | new ClassMapBuildCompilerPass($autowiringClassMap), |
|
39 | 1 | PassConfig::TYPE_OPTIMIZE |
|
40 | ); |
||
41 | |||
42 | 1 | $container->addCompilerPass( |
|
43 | 1 | new AutowiringCompilerPass($autowiringClassMap, $annotationReader, new PhpParser()), |
|
44 | 1 | PassConfig::TYPE_OPTIMIZE |
|
45 | ); |
||
46 | 1 | } |
|
47 | |||
49 |