From 546fc2f7b4e72f379e46bff52604aad7d355bc4d Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Sat, 29 Jul 2023 22:14:24 +0200 Subject: [PATCH] Remove some unused use --- components/event_dispatcher.rst | 2 -- configuration.rst | 4 +--- frontend/custom_version_strategy.rst | 1 - service_container.rst | 3 --- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index 1e281c084b0..cc4367f8723 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -182,7 +182,6 @@ determine which instance is passed. use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; - use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass; use Symfony\Component\EventDispatcher\EventDispatcher; @@ -213,7 +212,6 @@ determine which instance is passed. use Symfony\Component\DependencyInjection\Compiler\PassConfig; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; - use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\EventDispatcher\DependencyInjection\AddEventAliasesPass; use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass; use Symfony\Component\EventDispatcher\EventDispatcher; diff --git a/configuration.rst b/configuration.rst index 85a7a23db35..f201fab29fb 100644 --- a/configuration.rst +++ b/configuration.rst @@ -846,7 +846,7 @@ In PHP >= 8, you can remove the two arguments when autoconfiguration is enabled # config/services.yaml services: Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~ - + Then, run the command: .. code-block:: terminal @@ -1064,8 +1064,6 @@ whenever a service/controller defines a ``$projectDir`` argument, use this: // config/services.php namespace Symfony\Component\DependencyInjection\Loader\Configurator; - use App\Controller\LuckyController; - return static function (ContainerConfigurator $container) { $container->services() ->defaults() diff --git a/frontend/custom_version_strategy.rst b/frontend/custom_version_strategy.rst index ae64738e2df..04a2d45f245 100644 --- a/frontend/custom_version_strategy.rst +++ b/frontend/custom_version_strategy.rst @@ -139,7 +139,6 @@ After creating the strategy PHP class, register it as a Symfony service. namespace Symfony\Component\DependencyInjection\Loader\Configurator; use App\Asset\VersionStrategy\GulpBusterVersionStrategy; - use Symfony\Component\DependencyInjection\Definition; return function(ContainerConfigurator $container) { $services = $container->services(); diff --git a/service_container.rst b/service_container.rst index 5c33d16e069..3f55a05d643 100644 --- a/service_container.rst +++ b/service_container.rst @@ -803,10 +803,7 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type // config/services.php namespace Symfony\Component\DependencyInjection\Loader\Configurator; - use App\Controller\LuckyController; use Psr\Log\LoggerInterface; - use Symfony\Component\DependencyInjection\Definition; - use Symfony\Component\DependencyInjection\Reference; return function(ContainerConfigurator $container) { $services = $container->services() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy