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::