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()