| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3.3332 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | public function load(array $configs, ContainerBuilder $container) |
|
| 14 | { |
||
| 15 | 1 | $configuration = new Configuration(); |
|
| 16 | 1 | $config = $this->processConfiguration($configuration, $configs); |
|
| 17 | |||
| 18 | 1 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 19 | 1 | $loader->load('seo.yml'); |
|
| 20 | |||
| 21 | 1 | if (isset($config['target_repository'])) { |
|
| 22 | $container->setAlias('bankiru.seo.target_repository', $config['target_repository']); |
||
| 23 | } |
||
| 24 | 1 | if (isset($config['page_repository'])) { |
|
| 25 | $container->setAlias('bankiru.seo.page_repository', $config['page_repository']); |
||
| 26 | } |
||
| 27 | 1 | } |
|
| 28 | |||
| 34 |