From 570f1dbf45d19401b9c295daeb9280a969003107 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Mon, 16 Jan 2023 13:15:17 +0100 Subject: [PATCH] Fix: Build --- service_container/factories.rst | 2 +- translation.rst | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/service_container/factories.rst b/service_container/factories.rst index d5164e03b05..cb7d6cdeaf9 100644 --- a/service_container/factories.rst +++ b/service_container/factories.rst @@ -295,8 +295,8 @@ e.g. change the service based on a parameter: // config/services.php namespace Symfony\Component\DependencyInjection\Loader\Configurator; - use App\Email\NewsletterManagerInterface; use App\Email\NewsletterManagerFactory; + use App\Email\NewsletterManagerInterface; return function(ContainerConfigurator $containerConfigurator) { $services = $containerConfigurator->services(); diff --git a/translation.rst b/translation.rst index cc9d1847dd2..9e7d25d21c2 100644 --- a/translation.rst +++ b/translation.rst @@ -853,9 +853,7 @@ of: * All the services that are tagged with ``kernel.locale_aware``; * ``\Locale::setDefault()``; -* If a request is available, the ``_locale`` request attribute. - -.. code-block:: php +* If a request is available, the ``_locale`` request attribute:: use Symfony\Component\Translation\LocaleSwitcher;