From 1a9c48e6ac9ae6c07e8255a1454688535594c8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Fri, 11 Sep 2020 08:53:47 +0200 Subject: [PATCH] Missed cleanup in fluent migration --- cache.rst | 3 --- reference/configuration/swiftmailer.rst | 1 - service_container.rst | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cache.rst b/cache.rst index fb5cca97d57..a06cd0bd4c3 100644 --- a/cache.rst +++ b/cache.rst @@ -567,9 +567,6 @@ to enable this feature. This could be added by using the following configuration .. code-block:: php // config/packages/cache.php - use Symfony\Component\Cache\Adapter\ChainAdapter; - use Symfony\Component\DependencyInjection\Reference; - $container->loadFromExtension('framework', [ 'cache' => [ 'pools' => [ diff --git a/reference/configuration/swiftmailer.rst b/reference/configuration/swiftmailer.rst index ed0c28736ab..674cee6ae53 100644 --- a/reference/configuration/swiftmailer.rst +++ b/reference/configuration/swiftmailer.rst @@ -381,7 +381,6 @@ alternatives based on the :ref:`service binding ` feature: // config/services.php use App\Some\Service; use Psr\Log\LoggerInterface; - use Symfony\Component\DependencyInjection\Reference; $container->register(Service::class) diff --git a/service_container.rst b/service_container.rst index d918f590f7f..f551beb9a9a 100644 --- a/service_container.rst +++ b/service_container.rst @@ -483,7 +483,7 @@ all their types (string, boolean, array, binary and PHP constant parameters). However, there is another type of parameter related to services. In YAML config, any string which starts with ``@`` is considered as the ID of a service, instead of a regular string. In XML config, use the ``type="service"`` type for the -parameter and in PHP config use the ``Reference`` class: +parameter and in PHP config use the ``ref`` function: .. configuration-block::