Skip to content

Commit 9c761ac

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Remove reference to PHP Templates in translation
2 parents 5f29149 + b2b1eb5 commit 9c761ac

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

translation.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,6 @@ The ``trans`` filter can be used to translate *variable texts* and complex expre
433433
Note that this only influences the current template, not any "included"
434434
template (in order to avoid side effects).
435435

436-
PHP Templates
437-
~~~~~~~~~~~~~
438-
439-
The translator service is accessible in PHP templates through the
440-
``translator`` helper:
441-
442-
.. code-block:: html+php
443-
444-
<?= $view['translator']->trans('Symfony is great') ?>
445-
446436
Forcing the Translator Locale
447437
-----------------------------
448438

0 commit comments

Comments
 (0)