minor #4618 fix: update extension references in docs to use backticks (smnandre)

This PR was merged into the 3.x branch.

Discussion
----------

fix: update extension references in docs to use backticks

Commits
-------

239a060d59 fix: update extension references in docs to use backticks
This commit is contained in:
Fabien Potencier
2025-03-20 22:32:08 +01:00
+7 -7
View File
@@ -327,23 +327,23 @@ extension via the ``addExtension()`` method::
Twig comes bundled with the following extensions:
* *Twig\Extension\CoreExtension*: Defines all the core features of Twig.
* ``\Twig\Extension\CoreExtension``: Defines all the core features of Twig.
* *Twig\Extension\DebugExtension*: Defines the ``dump`` function to help debug
* ``\Twig\Extension\DebugExtension``: Defines the ``dump`` function to help debug
template variables.
* *Twig\Extension\EscaperExtension*: Adds automatic output-escaping and the
* ``\Twig\Extension\EscaperExtension``: Adds automatic output-escaping and the
possibility to escape/unescape blocks of code.
* *Twig\Extension\SandboxExtension*: Adds a sandbox mode to the default Twig
* ``\Twig\Extension\SandboxExtension``: Adds a sandbox mode to the default Twig
environment, making it safe to evaluate untrusted code.
* *Twig\Extension\ProfilerExtension*: Enables the built-in Twig profiler.
* ``\Twig\Extension\ProfilerExtension``: Enables the built-in Twig profiler.
* *Twig\Extension\OptimizerExtension*: Optimizes the node tree before
* ``\Twig\Extension\OptimizerExtension``: Optimizes the node tree before
compilation.
* *Twig\Extension\StringLoaderExtension*: Defines the ``template_from_string``
* ``\Twig\Extension\StringLoaderExtension``: Defines the ``template_from_string``
function to allow loading templates from string in a template.
The Core, Escaper, and Optimizer extensions are registered by default.