You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/ApiOverview/Mail/Index.rst
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,7 +412,6 @@ Set the current request object for `FluidEmail`
412
412
In order to use ViewHelpers that need a valid current request, such as :ref:`t3viewhelper:typo3-fluid-uri-page`,
413
413
pass the current request to the FluidEmail instance:
414
414
415
-
416
415
.. code-block:: php
417
416
418
417
use TYPO3\CMS\Core\Mail\FluidEmail;
@@ -421,8 +420,12 @@ pass the current request to the FluidEmail instance:
421
420
$email->setRequest($this->request);
422
421
423
422
Read more aboout :ref:`Getting the PSR-7 request object <getting-typo3-request-object>` in different
424
-
contexts. In a context where no valid request object can be retrieved, such as in a
425
-
:ref:`Console command <t3coreapi:symfony-console-commands>` the affected ViewHelpers cannot be used.
423
+
contexts.
424
+
425
+
In a context where no valid request object can be retrieved, such as in a
426
+
:ref:`Console command <t3coreapi:symfony-console-commands>` a valid frontend context need to be
427
+
simmulated (`Simulating a frontend request in TYPO3 Commands <https://docs.typo3.org/permalink/t3coreapi:console-command-tutorial-fe-request-example>`_)
428
+
or the affected ViewHelpers cannot be used.
426
429
427
430
Trying to use these ViewHelpers without a valid request throws an :doc:`error <t3exceptions:Exceptions/1639819269>`
0 commit comments