debug change directory

This commit is contained in:
Cyprian Beauvois 2019-02-21 14:43:19 +01:00
parent 23a047517e
commit e41955058b
1 changed files with 2 additions and 7 deletions

View File

@ -10,7 +10,7 @@ use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
class StorageExtension extends Extension implements PrependExtensionInterface class StorageExtension extends Extension
{ {
/** /**
@ -24,6 +24,7 @@ class StorageExtension extends Extension implements PrependExtensionInterface
$loader->load('services.yaml'); $loader->load('services.yaml');
// $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');
dump($container->get('router')->getContext()->getBaseUrl()); die;
$configuration = $this->getConfiguration($configs, $container); $configuration = $this->getConfiguration($configs, $container);
$config = $this->processConfiguration($configuration, $configs); $config = $this->processConfiguration($configuration, $configs);
@ -38,12 +39,6 @@ class StorageExtension extends Extension implements PrependExtensionInterface
return $config; return $config;
} }
public function prepend(ContainerBuilder $container)
{
$configs = $container->getExtensionConfig($this->getAlias());
$config = $this->processConfiguration(new Configuration(), $configs);
dump($config); die;
}
public function getAlias() public function getAlias()
{ {