diff --git a/StorageBundle/DependencyInjection/StorageExtension.php b/StorageBundle/DependencyInjection/StorageExtension.php index 3cfa114..0b2f60f 100644 --- a/StorageBundle/DependencyInjection/StorageExtension.php +++ b/StorageBundle/DependencyInjection/StorageExtension.php @@ -22,20 +22,11 @@ class StorageExtension extends Extension { $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Ressources/config')); $loader->load('services.yaml'); - $loader->load('import.yaml'); -// $sLoader = new YamlFileLoader($container, new FileLocator('/config/packages/bluesquare')); -// $sLoader->load('storage.yaml'); -// dump($container->get('kernel')->getProjectDir()); die; + $configuration = $this->getConfiguration($configs, $container); $config = $this->processConfiguration($configuration, $configs); - dump($config); die; - -// dump(new FileLocator('/config/packages/bluesquare')); die; - -// dump($sLoader, $container, $configuration, $config); die; - $definition = $container->getDefinition('bluesquare.storage'); $definition->setArgument(0, $config); diff --git a/StorageBundle/Storage.php b/StorageBundle/Storage.php index 8a62ae6..b484855 100644 --- a/StorageBundle/Storage.php +++ b/StorageBundle/Storage.php @@ -23,7 +23,7 @@ class Storage public function __construct(array $user_config = []) { - dump($user_config); die; +// dump($user_config); die; $this->config_storage = $user_config; }