From e4dd3074c993893c6309ec11546f66d1e4979e9f Mon Sep 17 00:00:00 2001 From: cbeauvoi Date: Thu, 21 Feb 2019 14:29:58 +0100 Subject: [PATCH] debug change directory --- StorageBundle/DependencyInjection/StorageExtension.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/StorageBundle/DependencyInjection/StorageExtension.php b/StorageBundle/DependencyInjection/StorageExtension.php index 5bd33ce..bb58d66 100644 --- a/StorageBundle/DependencyInjection/StorageExtension.php +++ b/StorageBundle/DependencyInjection/StorageExtension.php @@ -3,6 +3,7 @@ namespace Bluesquare\StorageBundle\DependencyInjection; use Symfony\Component\Config\FileLocator; +use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Extension\Extension; @@ -23,7 +24,7 @@ class StorageExtension extends Extension // $sLoader = new YamlFileLoader($container, new FileLocator('/config/packages/bluesquare')); // $sLoader->load('storage.yaml'); $configuration = $this->getConfiguration($configs, $container); - dump($configuration); die; + $config = $this->processConfiguration($configuration, $configs); // dump(new FileLocator('/config/packages/bluesquare')); die; @@ -36,6 +37,12 @@ class StorageExtension extends Extension return $config; } + public function prepend(ContainerBuilder $container) + { + $configs = $container->getExtensionConfig($this->getAlias()); + dump($configs); die; + } + public function getAlias() { return ('bluesquare/storage_test');