Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class MongoDBMigrationsExtension extends Extension |
||
23 | { |
||
24 | /** |
||
25 | * Responds to the migrations configuration parameter. |
||
26 | * |
||
27 | * @param array $configs |
||
28 | * @param ContainerBuilder $container |
||
29 | */ |
||
30 | public function load(array $configs, ContainerBuilder $container) |
||
31 | { |
||
32 | $configuration = new Configuration(); |
||
33 | |||
34 | $config = $this->processConfiguration($configuration, $configs); |
||
35 | |||
36 | foreach ($config as $key => $value) { |
||
37 | $container->setParameter($this->getAlias() . '.' . $key, $value); |
||
38 | } |
||
39 | |||
40 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
41 | $loader->load('services.xml'); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getAlias() |
||
50 | } |
||
51 | } |
||
52 |