| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function load(array $config, ContainerBuilder $containerBuilder): void |
||
| 21 | { |
||
| 22 | $configuration = new Configuration(); |
||
| 23 | |||
| 24 | $containerBuilder |
||
| 25 | ->setParameter( |
||
| 26 | 'knp_dictionary.configuration', |
||
| 27 | $this->processConfiguration($configuration, $config) |
||
| 28 | ) |
||
| 29 | ; |
||
| 30 | |||
| 31 | $containerBuilder |
||
| 32 | ->registerForAutoconfiguration(Dictionary::class) |
||
| 33 | ->addTag(DictionaryRegistrationPass::TAG_DICTIONARY) |
||
| 34 | ; |
||
| 35 | |||
| 36 | $containerBuilder |
||
| 37 | ->registerForAutoconfiguration(Dictionary\Factory::class) |
||
| 38 | ->addTag(DictionaryFactoryBuildingPass::TAG_FACTORY) |
||
| 39 | ; |
||
| 40 | |||
| 41 | $yamlFileLoader = new YamlFileLoader( |
||
| 42 | $containerBuilder, |
||
| 43 | new FileLocator(__DIR__.'/../Resources/config') |
||
| 44 | ); |
||
| 45 | |||
| 46 | $yamlFileLoader->load('services.yaml'); |
||
| 47 | } |
||
| 49 |