From b5cfbf3bf73224092674157756205adcd0b2c2ab Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Thu, 21 Feb 2019 15:14:16 +0100 Subject: [PATCH] debug change directory --- StorageBundle/DependencyInjection/StorageExtension.php | 4 +++- StorageBundle/Ressources/config/import.yaml | 2 ++ StorageBundle/Ressources/config/services.yaml | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 StorageBundle/Ressources/config/import.yaml diff --git a/StorageBundle/DependencyInjection/StorageExtension.php b/StorageBundle/DependencyInjection/StorageExtension.php index dfcc69d..3cfa114 100644 --- a/StorageBundle/DependencyInjection/StorageExtension.php +++ b/StorageBundle/DependencyInjection/StorageExtension.php @@ -22,7 +22,7 @@ class StorageExtension extends Extension { $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Ressources/config')); $loader->load('services.yaml'); - dump($configs); die; + $loader->load('import.yaml'); // $sLoader = new YamlFileLoader($container, new FileLocator('/config/packages/bluesquare')); // $sLoader->load('storage.yaml'); // dump($container->get('kernel')->getProjectDir()); die; @@ -30,6 +30,8 @@ class StorageExtension extends Extension $config = $this->processConfiguration($configuration, $configs); + dump($config); die; + // dump(new FileLocator('/config/packages/bluesquare')); die; // dump($sLoader, $container, $configuration, $config); die; diff --git a/StorageBundle/Ressources/config/import.yaml b/StorageBundle/Ressources/config/import.yaml new file mode 100644 index 0000000..10ea54e --- /dev/null +++ b/StorageBundle/Ressources/config/import.yaml @@ -0,0 +1,2 @@ +imports: + - { ressource: '%kernet.root_dir%/config/packages/bluesquare/storage.yaml' } diff --git a/StorageBundle/Ressources/config/services.yaml b/StorageBundle/Ressources/config/services.yaml index e71ec70..61a4dec 100644 --- a/StorageBundle/Ressources/config/services.yaml +++ b/StorageBundle/Ressources/config/services.yaml @@ -5,6 +5,3 @@ services: public: true arguments: ['user_storage'] Bluesquare\StorageBundle\Storage: '@bluesquare.storage' - -imports: - - { ressource: '%kernet.root_dir%/config/packages/bluesquare/storage.yaml' }