Skip to content

Commit f6a61f9

Browse files
committed
Fix minor syntax issues
1 parent f0bcff3 commit f6a61f9

File tree

8 files changed

+45
-47
lines changed

8 files changed

+45
-47
lines changed

configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ a new ``locale`` parameter is added to the ``config/services.yaml`` file).
391391

392392
By convention, parameters whose names start with a dot ``.`` (for example,
393393
``.mailer.transport``), are available only during the container compilation.
394-
They are useful when working with :ref:`Compiler Passes </service_container/compiler_passes>`
394+
They are useful when working with :doc:`Compiler Passes </service_container/compiler_passes>`
395395
to declare some temporary parameters that won't be available later in the application.
396396

397397
.. versionadded:: 6.3

messenger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ Rate Limited Transport
919919
The ``rate_limiter`` option was introduced in Symfony 6.2.
920920

921921
Sometimes you might need to rate limit your message worker. You can configure a
922-
rate limiter on a transport (requires the :doc:`RateLimiter component </rate-limiter>`)
922+
rate limiter on a transport (requires the :doc:`RateLimiter component </rate_limiter>`)
923923
by setting its ``rate_limiter`` option:
924924

925925
.. configuration-block::

reference/attributes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Dependency Injection
3838
* :ref:`Autowire <autowire-attribute>`
3939
* :ref:`AutowireCallable <autowiring_closures>`
4040
* :doc:`AutowireDecorated </service_container/service_decoration>`
41-
* :doc:`AutowireIterator <service-locator_autowire-iterator>`
41+
* :ref:`AutowireIterator <service-locator_autowire-iterator>`
4242
* :ref:`AutowireLocator <service-locator_autowire-locator>`
4343
* :ref:`AutowireServiceClosure <autowiring_closures>`
4444
* :ref:`Exclude <service-psr4-loader>`

reference/configuration/framework.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,6 @@ The **default value** is:
236236
$request = Request::createFromGlobals();
237237
// ...
238238

239-
.. _configuration-framework-http_method_override:
240-
241239
trust_x_sendfile_type_header
242240
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
243241

reference/constraints/Callback.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,16 @@ callback method:
271271
* A closure.
272272

273273
Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
274-
instance as the first argument and the :ref:`payload option <reference-constraints-payload>`
274+
instance as the first argument and the :ref:`payload option <reference-constraints-callback-payload>`
275275
as the second argument.
276276

277277
Static or closure callbacks receive the validated object as the first argument,
278278
the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
279-
instance as the second argument and the :ref:`payload option <reference-constraints-payload>`
279+
instance as the second argument and the :ref:`payload option <reference-constraints-callback-payload>`
280280
as the third argument.
281281

282282
.. include:: /reference/constraints/_groups-option.rst.inc
283283

284+
.. _reference-constraints-callback-payload:
285+
284286
.. include:: /reference/constraints/_payload-option.rst.inc

reference/constraints/_payload-option.rst.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _reference-constraints-payload:
2-
31
``payload``
42
~~~~~~~~~~~
53

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ controller.argument_value_resolver
335335
Value resolvers implement the
336336
:class:`Symfony\\Component\\HttpKernel\\Controller\\ValueResolverInterface`
337337
and are used to resolve argument values for controllers as described here:
338-
:doc:`/controller/argument_value_resolver`.
338+
:doc:`/controller/value_resolver`.
339339

340340
.. versionadded:: 6.2
341341

service_container/service_decoration.rst

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -299,35 +299,35 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
299299

300300
.. configuration-block::
301301

302-
.. code-block:: php-attributes
302+
.. code-block:: php-attributes
303303
304-
// ...
305-
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
306-
use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
304+
// ...
305+
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
306+
use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
307307
308-
#[AsDecorator(decorates: Foo::class, priority: 5)]
309-
class Bar
310-
{
311-
public function __construct(
312-
#[AutowireDecorated]
313-
private $inner,
314-
) {
315-
}
316-
// ...
308+
#[AsDecorator(decorates: Foo::class, priority: 5)]
309+
class Bar
310+
{
311+
public function __construct(
312+
#[AutowireDecorated]
313+
private $inner,
314+
) {
317315
}
316+
// ...
317+
}
318318
319-
#[AsDecorator(decorates: Foo::class, priority: 1)]
320-
class Baz
321-
{
322-
public function __construct(
323-
#[AutowireDecorated]
324-
private $inner,
325-
) {
326-
}
327-
328-
// ...
319+
#[AsDecorator(decorates: Foo::class, priority: 1)]
320+
class Baz
321+
{
322+
public function __construct(
323+
#[AutowireDecorated]
324+
private $inner,
325+
) {
329326
}
330327
328+
// ...
329+
}
330+
331331
.. code-block:: yaml
332332
333333
# config/services.yaml
@@ -619,24 +619,24 @@ Three different behaviors are available:
619619

620620
.. configuration-block::
621621

622-
.. code-block:: php-attributes
623-
624-
// ...
625-
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
626-
use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
627-
use Symfony\Component\DependencyInjection\ContainerInterface;
622+
.. code-block:: php-attributes
628623
629-
#[AsDecorator(decorates: Mailer::class, onInvalid: ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]
630-
class Bar
631-
{
632-
public function __construct(
633-
#[AutowireDecorated] private $inner,
634-
) {
635-
}
624+
// ...
625+
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
626+
use Symfony\Component\DependencyInjection\Attribute\AutowireDecorated;
627+
use Symfony\Component\DependencyInjection\ContainerInterface;
636628
637-
// ...
629+
#[AsDecorator(decorates: Mailer::class, onInvalid: ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]
630+
class Bar
631+
{
632+
public function __construct(
633+
#[AutowireDecorated] private $inner,
634+
) {
638635
}
639636
637+
// ...
638+
}
639+
640640
.. code-block:: yaml
641641
642642
# config/services.yaml

0 commit comments

Comments
 (0)