From 055fde314245320a6dc6d28a45070085f58549b0 Mon Sep 17 00:00:00 2001 From: Amrouche Hamza Date: Sat, 18 Nov 2017 12:16:39 +0200 Subject: [PATCH] Remove internals from autowiring --- .../SensioFrameworkExtraExtension.php | 6 +++--- Resources/config/annotations.xml | 2 +- Resources/config/cache.xml | 2 +- Resources/config/converters.xml | 10 +++++----- Resources/config/routing.xml | 10 +++++----- Resources/config/security.xml | 12 ++++++------ Resources/config/view.xml | 6 +++--- .../SensioFrameworkExtraExtensionTest.php | 2 +- 8 files changed, 25 insertions(+), 25 deletions(-) diff --git a/DependencyInjection/SensioFrameworkExtraExtension.php b/DependencyInjection/SensioFrameworkExtraExtension.php index 51ce9b6d..8b07a669 100644 --- a/DependencyInjection/SensioFrameworkExtraExtension.php +++ b/DependencyInjection/SensioFrameworkExtraExtension.php @@ -103,10 +103,10 @@ public function load(array $configs, ContainerBuilder $container) if (class_exists(SecurityExpressionLanguage::class)) { $container->setAlias('sensio_framework_extra.security.expression_language', new Alias($config['security']['expression_language'], false)); } else { - $container->removeDefinition('Sensio\Bundle\FrameworkExtraBundle\Security\ExpressionLanguage'); + $container->removeDefinition('framework_extra_bundle.expression_language'); } } else { - $container->removeDefinition('Sensio\Bundle\FrameworkExtraBundle\Security\ExpressionLanguage'); + $container->removeDefinition('framework_extra_bundle.expression_language'); } if (PHP_VERSION_ID < 70000) { @@ -137,7 +137,7 @@ public function load(array $configs, ContainerBuilder $container) if (!empty($config['templating']['controller_patterns'])) { $container - ->getDefinition('Sensio\Bundle\FrameworkExtraBundle\Templating\TemplateGuesser') + ->getDefinition('framework_extra_bundle.templating.guesser') ->addArgument($config['templating']['controller_patterns']); } diff --git a/Resources/config/annotations.xml b/Resources/config/annotations.xml index 5aebffc4..b92e71a9 100644 --- a/Resources/config/annotations.xml +++ b/Resources/config/annotations.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/Resources/config/cache.xml b/Resources/config/cache.xml index e0f6cd1f..63c662c1 100644 --- a/Resources/config/cache.xml +++ b/Resources/config/cache.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/Resources/config/converters.xml b/Resources/config/converters.xml index 902c5fd2..6a7a75a3 100644 --- a/Resources/config/converters.xml +++ b/Resources/config/converters.xml @@ -7,22 +7,22 @@ - + true - + - + - + - + diff --git a/Resources/config/routing.xml b/Resources/config/routing.xml index 70c030a0..5c62225d 100644 --- a/Resources/config/routing.xml +++ b/Resources/config/routing.xml @@ -5,19 +5,19 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + - + - + - + diff --git a/Resources/config/security.xml b/Resources/config/security.xml index ccc15858..56d9dece 100644 --- a/Resources/config/security.xml +++ b/Resources/config/security.xml @@ -5,8 +5,8 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - - + + @@ -16,15 +16,15 @@ - + - - + + - + diff --git a/Resources/config/view.xml b/Resources/config/view.xml index 6b19cf86..6a3a0c96 100644 --- a/Resources/config/view.xml +++ b/Resources/config/view.xml @@ -5,13 +5,13 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - + - + - + diff --git a/Tests/DependencyInjection/SensioFrameworkExtraExtensionTest.php b/Tests/DependencyInjection/SensioFrameworkExtraExtensionTest.php index e13a8c75..18042f56 100644 --- a/Tests/DependencyInjection/SensioFrameworkExtraExtensionTest.php +++ b/Tests/DependencyInjection/SensioFrameworkExtraExtensionTest.php @@ -58,7 +58,7 @@ public function testTemplatingControllerPatterns() $extension->load(array($config), $container); - $this->assertEquals($patterns, $container->getDefinition('Sensio\Bundle\FrameworkExtraBundle\Templating\TemplateGuesser')->getArgument(1)); + $this->assertEquals($patterns, $container->getDefinition('framework_extra_bundle.templating.guesser')->getArgument(1)); } private function assertAlias(ContainerBuilder $container, $value, $key)