Skip to content

Update Twig links and change symfony/var-dumper package installation command #16472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2022
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 components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ Learn more
/form/*

.. _Twig: https://twig.symfony.com
.. _`Twig Configuration`: https://twig.symfony.com/doc/2.x/intro.html
.. _`Twig Configuration`: https://twig.symfony.com/doc/3.x/intro.html
2 changes: 1 addition & 1 deletion contributing/documentation/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ In addition, documentation follows these rules:
* trivial

.. _`the Sphinx documentation`: https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#literal-blocks
.. _`Twig Coding Standards`: https://twig.symfony.com/doc/2.x/coding_standards.html
.. _`Twig Coding Standards`: https://twig.symfony.com/doc/3.x/coding_standards.html
.. _`reserved by the IANA`: https://tools.ietf.org/html/rfc2606#section-3
.. _`American English`: https://en.wikipedia.org/wiki/American_English
.. _`American English Oxford Dictionary`: https://www.lexico.com/definition/american_english
Expand Down
2 changes: 1 addition & 1 deletion form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,4 @@ Variable Usage
variables a particular field has, find the source code for the form
field (and its parent fields) and look at the above two functions.

.. _`the Twig documentation`: https://twig.symfony.com/doc/2.x/templates.html#test-operator
.. _`the Twig documentation`: https://twig.symfony.com/doc/3.x/templates.html#test-operator
4 changes: 2 additions & 2 deletions form/form_themes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -656,5 +656,5 @@ is a collection of fields (e.g. a whole form), and not just an individual field:
.. _`Foundation CSS framework`: https://get.foundation/
.. _`tailwind_2_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/tailwind_2_layout.html.twig
.. _`Tailwind CSS form plugin`: https://tailwindcss-forms.vercel.app/
.. _`Twig "use" tag`: https://twig.symfony.com/doc/2.x/tags/use.html
.. _`Twig parent() function`: https://twig.symfony.com/doc/2.x/functions/parent.html
.. _`Twig "use" tag`: https://twig.symfony.com/doc/3.x/tags/use.html
.. _`Twig parent() function`: https://twig.symfony.com/doc/3.x/functions/parent.html
2 changes: 1 addition & 1 deletion reference/configuration/twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,5 @@ If set to ``true``, Symfony shows an exception whenever a Twig variable,
attribute or method doesn't exist. If set to ``false`` these errors are ignored
and the non-existing values are replaced by ``null``.

.. _`the optimizer extension`: https://twig.symfony.com/doc/2.x/api.html#optimizer-extension
.. _`the optimizer extension`: https://twig.symfony.com/doc/3.x/api.html#optimizer-extension
.. _`XSS attacks`: https://en.wikipedia.org/wiki/Cross-site_scripting
4 changes: 2 additions & 2 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,6 @@ Then, tag it with the ``validator.initializer`` tag (it has no options).
For an example, see the ``DoctrineInitializer`` class inside the Doctrine
Bridge.

.. _`Twig's documentation`: https://twig.symfony.com/doc/2.x/advanced.html#creating-an-extension
.. _`Twig Loader`: https://twig.symfony.com/doc/2.x/api.html#loaders
.. _`Twig's documentation`: https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
.. _`Twig Loader`: https://twig.symfony.com/doc/3.x/api.html#loaders
.. _`PHP class preloading`: https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.preload
2 changes: 1 addition & 1 deletion reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -669,4 +669,4 @@ The ``app`` variable is injected automatically by Symfony in all templates and
provides access to lots of useful application information. Read more about the
:ref:`Twig global app variable <twig-app-variable>`.

.. _`default filters and functions defined by Twig`: https://twig.symfony.com/doc/2.x/#reference
.. _`default filters and functions defined by Twig`: https://twig.symfony.com/doc/3.x/#reference
20 changes: 10 additions & 10 deletions templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ First, make sure that the VarDumper component is installed in the application:

.. code-block:: terminal

$ composer require symfony/var-dumper
$ composer require --dev symfony/var-dumper

Then, use either the ``{% dump %}`` tag or the ``{{ dump() }}`` function
depending on your needs:
Expand Down Expand Up @@ -1217,16 +1217,16 @@ Learn more
/templating/*

.. _`Twig`: https://twig.symfony.com
.. _`tags`: https://twig.symfony.com/doc/2.x/tags/index.html
.. _`filters`: https://twig.symfony.com/doc/2.x/filters/index.html
.. _`functions`: https://twig.symfony.com/doc/2.x/functions/index.html
.. _`with_context`: https://twig.symfony.com/doc/2.x/functions/include.html
.. _`Twig template loader`: https://twig.symfony.com/doc/2.x/api.html#loaders
.. _`Twig raw filter`: https://twig.symfony.com/doc/2.x/filters/raw.html
.. _`Twig output escaping docs`: https://twig.symfony.com/doc/2.x/api.html#escaper-extension
.. _`tags`: https://twig.symfony.com/doc/3.x/tags/index.html
.. _`filters`: https://twig.symfony.com/doc/3.x/filters/index.html
.. _`functions`: https://twig.symfony.com/doc/3.x/functions/index.html
.. _`with_context`: https://twig.symfony.com/doc/3.x/functions/include.html
.. _`Twig template loader`: https://twig.symfony.com/doc/3.x/api.html#loaders
.. _`Twig raw filter`: https://twig.symfony.com/doc/3.x/filters/raw.html
.. _`Twig output escaping docs`: https://twig.symfony.com/doc/3.x/api.html#escaper-extension
.. _`snake case`: https://en.wikipedia.org/wiki/Snake_case
.. _`Twig template inheritance`: https://twig.symfony.com/doc/2.x/tags/extends.html
.. _`Twig block tag`: https://twig.symfony.com/doc/2.x/tags/block.html
.. _`Twig template inheritance`: https://twig.symfony.com/doc/3.x/tags/extends.html
.. _`Twig block tag`: https://twig.symfony.com/doc/3.x/tags/block.html
.. _`Cross-Site Scripting`: https://en.wikipedia.org/wiki/Cross-site_scripting
.. _`GitHub Actions`: https://docs.github.com/en/free-pro-team@latest/actions
.. _`UX Twig Component`: https://symfony.com/bundles/ux-twig-component/current/index.html
Expand Down
6 changes: 3 additions & 3 deletions templating/twig_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ If you're using the default ``services.yaml`` configuration, this will already
work! Otherwise, :ref:`create a service <service-container-creating-service>`
for this class and :doc:`tag your service </service_container/tags>` with ``twig.runtime``.

.. _`Twig Extensions`: https://twig.symfony.com/doc/2.x/advanced.html#creating-an-extension
.. _`default Twig filters and functions`: https://twig.symfony.com/doc/2.x/#reference
.. _`Twig Extensions`: https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
.. _`default Twig filters and functions`: https://twig.symfony.com/doc/3.x/#reference
.. _`official Twig extensions`: https://github.com/twigphp?q=extra
.. _`global variables`: https://twig.symfony.com/doc/2.x/advanced.html#id1
.. _`global variables`: https://twig.symfony.com/doc/3.x/advanced.html#id1