| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 12 | public function load(array $configs, ContainerBuilder $container) |
|
| 20 | { |
||
| 21 | 12 | $config = $this->processConfiguration(new Configuration(), $configs); |
|
| 22 | |||
| 23 | 12 | $loader = new Loader\XmlFileLoader( |
|
| 24 | 8 | $container, |
|
| 25 | 12 | new FileLocator(__DIR__.'/../Resources/config') |
|
| 26 | 4 | ); |
|
| 27 | 12 | $loader->load('services.xml'); |
|
| 28 | |||
| 29 | $container |
||
| 30 | 12 | ->getDefinition('humanizer_bundle.twig.abstract_humanizer_extension') |
|
| 31 | 12 | ->replaceArgument(0, new Reference($config['translator'])); |
|
| 32 | 12 | } |
|
| 33 | } |
||
| 34 |