debug change directory

This commit is contained in:
Cyprian Beauvois 2019-02-21 14:29:58 +01:00
parent fdd7ef1291
commit e4dd3074c9
1 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,7 @@
namespace Bluesquare\StorageBundle\DependencyInjection; namespace Bluesquare\StorageBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator; use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Extension\Extension;
@ -23,7 +24,7 @@ class StorageExtension extends Extension
// $sLoader = new YamlFileLoader($container, new FileLocator('/config/packages/bluesquare')); // $sLoader = new YamlFileLoader($container, new FileLocator('/config/packages/bluesquare'));
// $sLoader->load('storage.yaml'); // $sLoader->load('storage.yaml');
$configuration = $this->getConfiguration($configs, $container); $configuration = $this->getConfiguration($configs, $container);
dump($configuration); die;
$config = $this->processConfiguration($configuration, $configs); $config = $this->processConfiguration($configuration, $configs);
// dump(new FileLocator('/config/packages/bluesquare')); die; // dump(new FileLocator('/config/packages/bluesquare')); die;
@ -36,6 +37,12 @@ class StorageExtension extends Extension
return $config; return $config;
} }
public function prepend(ContainerBuilder $container)
{
$configs = $container->getExtensionConfig($this->getAlias());
dump($configs); die;
}
public function getAlias() public function getAlias()
{ {
return ('bluesquare/storage_test'); return ('bluesquare/storage_test');