Skip to content

Fix broken reference links #19515

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 6, 2024
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/cache/adapters/pdo_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ your code.
.. deprecated:: 5.4

Using :class:`Symfony\\Component\\Cache\\Adapter\\PdoAdapter` with a
:class:`Doctrine\\DBAL\\Connection` or a DBAL URL is deprecated since Symfony 5.4
``Doctrine\DBAL\Connection`` or a DBAL URL is deprecated since Symfony 5.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding a link?

and will be removed in Symfony 6.0.
Use :class:`Symfony\\Component\\Cache\\Adapter\\DoctrineDbalAdapter` instead.

Expand Down
2 changes: 1 addition & 1 deletion components/runtime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ The following arguments are supported by the ``SymfonyRuntime``:
:class:`Symfony\\Component\\Console\\Application`
An application for creating CLI applications.

:class:`Symfony\\Component\\Command\\Command`
:class:`Symfony\\Component\\Console\\Command\\Command`
For creating one line command CLI applications (using
``Command::setCode()``).

Expand Down
2 changes: 1 addition & 1 deletion components/validator/resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ instance.

To solve this problem, call the :method:`Symfony\\Component\\Validator\\ValidatorBuilder::setMappingCache`
method of the Validator builder and pass your own caching class (which must
implement the PSR-6 interface :class:`Psr\\Cache\\CacheItemPoolInterface`)::
implement the PSR-6 interface ``Psr\Cache\CacheItemPoolInterface``)::

use Symfony\Component\Validator\Validation;

Expand Down
6 changes: 3 additions & 3 deletions controller/argument_value_resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ In addition, some components and official bundles provide other value resolvers:

PSR-7 Objects Resolver:
Injects a Symfony HttpFoundation ``Request`` object created from a PSR-7 object
of type :class:`Psr\\Http\\Message\\ServerRequestInterface`,
:class:`Psr\\Http\\Message\\RequestInterface` or :class:`Psr\\Http\\Message\\MessageInterface`.
of type ``Psr\Http\Message\ServerRequestInterface``,
``Psr\Http\Message\RequestInterface`` or ``Psr\Http\Message\MessageInterface``.
It requires installing :doc:`the PSR-7 Bridge </components/psr7>` component.

Adding a Custom Value Resolver
Expand Down Expand Up @@ -250,7 +250,7 @@ To ensure your resolvers are added in the right position you can run the followi
command to see which argument resolvers are present and in which order they run.

.. code-block:: terminal

$ php bin/console debug:container debug.argument_resolver.inner --show-arguments

.. tip::
Expand Down
2 changes: 1 addition & 1 deletion reference/constraints/Negative.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ want to allow zero as value.
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Class :class:`Symfony\\Component\\Validator\\Constraints\\Negative`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LesserThanValidator`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LessThanValidator`
========== ===================================================================

Basic Usage
Expand Down
2 changes: 1 addition & 1 deletion reference/constraints/NegativeOrZero.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ want to allow zero as value, use :doc:`/reference/constraints/Negative` instead.
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Class :class:`Symfony\\Component\\Validator\\Constraints\\NegativeOrZero`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LesserThanOrEqualValidator`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LessThanOrEqualValidator`
========== ===================================================================

Basic Usage
Expand Down
4 changes: 2 additions & 2 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,7 @@ twig.loader

**Purpose**: Register a custom service that loads Twig templates

By default, Symfony uses only one `Twig Loader`_ -
:class:`Symfony\\Bundle\\TwigBundle\\Loader\\FilesystemLoader`. If you need
By default, Symfony uses only one `Twig Loader`_ - `FilesystemLoader`_. If you need
to load Twig templates from another resource, you can create a service for
the new loader and tag it with ``twig.loader``.

Expand Down Expand Up @@ -1457,6 +1456,7 @@ Then, tag it with the ``validator.initializer`` tag (it has no options).
For an example, see the ``DoctrineInitializer`` class inside the Doctrine
Bridge.

.. _`FilesystemLoader`: https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
.. _`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
33 changes: 17 additions & 16 deletions templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ Rendering a Template in Services
Inject the ``twig`` Symfony service into your own services and use its
``render()`` method. When using :doc:`service autowiring </service_container/autowiring>`
you only need to add an argument in the service constructor and type-hint it with
the :class:`Twig\\Environment` class::
the `Twig Environment`_::

// src/Service/SomeService.php
namespace App\Service;
Expand Down Expand Up @@ -1582,23 +1582,24 @@ 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`: https://twig.symfony.com
.. _`tags`: https://twig.symfony.com/doc/3.x/tags/index.html
.. _`Cross-Site Scripting`: https://en.wikipedia.org/wiki/Cross-site_scripting
.. _`default Twig filters and functions`: https://twig.symfony.com/doc/3.x/#reference
.. _`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/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
.. _`UX Live Component`: https://symfony.com/bundles/ux-live-component/current/index.html
.. _`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/3.x/advanced.html#id1
.. _`hinclude.js`: https://mnot.github.io/hinclude/
.. _`official Twig extensions`: https://github.com/twigphp?q=extra
.. _`snake case`: https://en.wikipedia.org/wiki/Snake_case
.. _`tags`: https://twig.symfony.com/doc/3.x/tags/index.html
.. _`Twig block tag`: https://twig.symfony.com/doc/3.x/tags/block.html
.. _`Twig Environment`: https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
.. _`Twig Extensions`: https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
.. _`Twig output escaping docs`: https://twig.symfony.com/doc/3.x/api.html#escaper-extension
.. _`Twig raw filter`: https://twig.symfony.com/doc/3.x/filters/raw.html
.. _`Twig template inheritance`: https://twig.symfony.com/doc/3.x/tags/extends.html
.. _`Twig template loader`: https://twig.symfony.com/doc/3.x/api.html#loaders
.. _`Twig`: https://twig.symfony.com
.. _`UX Live Component`: https://symfony.com/bundles/ux-live-component/current/index.html
.. _`UX Twig Component`: https://symfony.com/bundles/ux-twig-component/current/index.html
.. _`with_context`: https://twig.symfony.com/doc/3.x/functions/include.html