Skip to content

Commit d0ca89f

Browse files
committed
minor #19515 Fix broken reference links (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- Fix broken reference links I found them with tweaked `docs-builder`, but it took a very long time I will check other branches when this one will be merged Commits ------- c9487e3 Fix broken class links
2 parents a5c7187 + c9487e3 commit d0ca89f

File tree

8 files changed

+27
-26
lines changed

8 files changed

+27
-26
lines changed

components/cache/adapters/pdo_adapter.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ your code.
4141
.. deprecated:: 5.4
4242

4343
Using :class:`Symfony\\Component\\Cache\\Adapter\\PdoAdapter` with a
44-
:class:`Doctrine\\DBAL\\Connection` or a DBAL URL is deprecated since Symfony 5.4
44+
``Doctrine\DBAL\Connection`` or a DBAL URL is deprecated since Symfony 5.4
4545
and will be removed in Symfony 6.0.
4646
Use :class:`Symfony\\Component\\Cache\\Adapter\\DoctrineDbalAdapter` instead.
4747

components/runtime.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ The following arguments are supported by the ``SymfonyRuntime``:
139139
:class:`Symfony\\Component\\Console\\Application`
140140
An application for creating CLI applications.
141141

142-
:class:`Symfony\\Component\\Command\\Command`
142+
:class:`Symfony\\Component\\Console\\Command\\Command`
143143
For creating one line command CLI applications (using
144144
``Command::setCode()``).
145145

components/validator/resources.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ instance.
148148

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

153153
use Symfony\Component\Validator\Validation;
154154

controller/argument_value_resolver.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ In addition, some components and official bundles provide other value resolvers:
5353

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

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

252252
.. code-block:: terminal
253-
253+
254254
$ php bin/console debug:container debug.argument_resolver.inner --show-arguments
255255
256256
.. tip::

reference/constraints/Negative.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ want to allow zero as value.
88
========== ===================================================================
99
Applies to :ref:`property or method <validation-property-target>`
1010
Class :class:`Symfony\\Component\\Validator\\Constraints\\Negative`
11-
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LesserThanValidator`
11+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LessThanValidator`
1212
========== ===================================================================
1313

1414
Basic Usage

reference/constraints/NegativeOrZero.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ want to allow zero as value, use :doc:`/reference/constraints/Negative` instead.
77
========== ===================================================================
88
Applies to :ref:`property or method <validation-property-target>`
99
Class :class:`Symfony\\Component\\Validator\\Constraints\\NegativeOrZero`
10-
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LesserThanOrEqualValidator`
10+
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LessThanOrEqualValidator`
1111
========== ===================================================================
1212

1313
Basic Usage

reference/dic_tags.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,7 @@ twig.loader
13391339

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

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

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

1459+
.. _`FilesystemLoader`: https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
14601460
.. _`Twig's documentation`: https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
14611461
.. _`Twig Loader`: https://twig.symfony.com/doc/3.x/api.html#loaders
14621462
.. _`PHP class preloading`: https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.preload

templates.rst

+17-16
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ Rendering a Template in Services
592592
Inject the ``twig`` Symfony service into your own services and use its
593593
``render()`` method. When using :doc:`service autowiring </service_container/autowiring>`
594594
you only need to add an argument in the service constructor and type-hint it with
595-
the :class:`Twig\\Environment` class::
595+
the `Twig Environment`_::
596596

597597
// src/Service/SomeService.php
598598
namespace App\Service;
@@ -1582,23 +1582,24 @@ If you're using the default ``services.yaml`` configuration, this will already
15821582
work! Otherwise, :ref:`create a service <service-container-creating-service>`
15831583
for this class and :doc:`tag your service </service_container/tags>` with ``twig.runtime``.
15841584

1585-
.. _`Twig`: https://twig.symfony.com
1586-
.. _`tags`: https://twig.symfony.com/doc/3.x/tags/index.html
1585+
.. _`Cross-Site Scripting`: https://en.wikipedia.org/wiki/Cross-site_scripting
1586+
.. _`default Twig filters and functions`: https://twig.symfony.com/doc/3.x/#reference
15871587
.. _`filters`: https://twig.symfony.com/doc/3.x/filters/index.html
15881588
.. _`functions`: https://twig.symfony.com/doc/3.x/functions/index.html
1589-
.. _`with_context`: https://twig.symfony.com/doc/3.x/functions/include.html
1590-
.. _`Twig template loader`: https://twig.symfony.com/doc/3.x/api.html#loaders
1591-
.. _`Twig raw filter`: https://twig.symfony.com/doc/3.x/filters/raw.html
1592-
.. _`Twig output escaping docs`: https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1593-
.. _`snake case`: https://en.wikipedia.org/wiki/Snake_case
1594-
.. _`Twig template inheritance`: https://twig.symfony.com/doc/3.x/tags/extends.html
1595-
.. _`Twig block tag`: https://twig.symfony.com/doc/3.x/tags/block.html
1596-
.. _`Cross-Site Scripting`: https://en.wikipedia.org/wiki/Cross-site_scripting
15971589
.. _`GitHub Actions`: https://docs.github.com/en/free-pro-team@latest/actions
1598-
.. _`UX Twig Component`: https://symfony.com/bundles/ux-twig-component/current/index.html
1599-
.. _`UX Live Component`: https://symfony.com/bundles/ux-live-component/current/index.html
1600-
.. _`Twig Extensions`: https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1601-
.. _`default Twig filters and functions`: https://twig.symfony.com/doc/3.x/#reference
1602-
.. _`official Twig extensions`: https://github.com/twigphp?q=extra
16031590
.. _`global variables`: https://twig.symfony.com/doc/3.x/advanced.html#id1
16041591
.. _`hinclude.js`: https://mnot.github.io/hinclude/
1592+
.. _`official Twig extensions`: https://github.com/twigphp?q=extra
1593+
.. _`snake case`: https://en.wikipedia.org/wiki/Snake_case
1594+
.. _`tags`: https://twig.symfony.com/doc/3.x/tags/index.html
1595+
.. _`Twig block tag`: https://twig.symfony.com/doc/3.x/tags/block.html
1596+
.. _`Twig Environment`: https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
1597+
.. _`Twig Extensions`: https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1598+
.. _`Twig output escaping docs`: https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1599+
.. _`Twig raw filter`: https://twig.symfony.com/doc/3.x/filters/raw.html
1600+
.. _`Twig template inheritance`: https://twig.symfony.com/doc/3.x/tags/extends.html
1601+
.. _`Twig template loader`: https://twig.symfony.com/doc/3.x/api.html#loaders
1602+
.. _`Twig`: https://twig.symfony.com
1603+
.. _`UX Live Component`: https://symfony.com/bundles/ux-live-component/current/index.html
1604+
.. _`UX Twig Component`: https://symfony.com/bundles/ux-twig-component/current/index.html
1605+
.. _`with_context`: https://twig.symfony.com/doc/3.x/functions/include.html

0 commit comments

Comments
 (0)