Skip to content

Commit 33ac660

Browse files
jakumijaviereguiluz
authored andcommitted
Update translation.rst
1 parent b312234 commit 33ac660

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/translation.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ The constructor of the ``Translator`` class needs one argument: The locale.
3434
.. code-block:: php
3535
3636
use Symfony\Component\Translation\Translator;
37-
use Symfony\Component\Translation\MessageSelector;
3837
39-
$translator = new Translator('fr_FR', new MessageSelector());
38+
$translator = new Translator('fr_FR');
4039
4140
.. note::
4241

0 commit comments

Comments
 (0)