diff --git a/DependencyInjection/MongoDBMigrationsExtension.php b/DependencyInjection/MongoDBMigrationsExtension.php index 91a1791..d203c0a 100644 --- a/DependencyInjection/MongoDBMigrationsExtension.php +++ b/DependencyInjection/MongoDBMigrationsExtension.php @@ -11,6 +11,8 @@ namespace AntiMattr\Bundle\MongoDBMigrationsBundle\DependencyInjection; +use Symfony\Component\Config\FileLocator; +use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\DependencyInjection\Extension; @@ -32,8 +34,11 @@ public function load(array $configs, ContainerBuilder $container) $config = $this->processConfiguration($configuration, $configs); foreach ($config as $key => $value) { - $container->setParameter($this->getAlias().'.'.$key, $value); + $container->setParameter($this->getAlias() . '.' . $key, $value); } + + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); + $loader->load('services.xml'); } /** diff --git a/Resources/config/services.xml b/Resources/config/services.xml new file mode 100644 index 0000000..6055cf4 --- /dev/null +++ b/Resources/config/services.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +