Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion service_container/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 1 addition & 3 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down