8000 Merge branch '4.4' into 5.1 · symfony/symfony-docs@b708b67 · GitHub
[go: up one dir, main page]

Skip to content

Commit b708b67

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Add priority order explanation for tagged services Update routing.rst
2 parents b8fa740 + 8b0a921 commit b708b67

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ the common configuration using options when importing the routes.
12821282
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
12831283
12841284
return function (RoutingConfigurator $routes) {
1285-
// use the optional fifth argument of import() to exclude some files
1285+
// use the optional fourth argument of import() to exclude some files
12861286
// or subdirectories when loading annotations
12871287
$routes->import('../../src/Controller/', 'annotation')
12881288
// this is added to the beginning of all imported route URLs

service_container/tags.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,9 @@ application handlers::
592592
Tagged Services with Priority
593593
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
594594

595-
The tagged services can be prioritized using the ``priority`` attribute,
596-
thus providing a way to inject a sorted collection of services:
595+
The tagged services can be prioritized using the ``priority`` attribute.
596+
The priority is a positive or negative integer. The higher the number,
597+
the earlier the tagged service will be located in the collection:
597598

598599
.. configuration-block::
599600

@@ -651,7 +652,7 @@ service itself::
651652
}
652653
}
653654

654-
If you want to have another method defining the priority
655+
If you want to have another method defining the priority
655656
(e.g. ``getPriority()`` rather than ``getDefaultPriority()``),
656657
you can define it in the configuration of the collecting service:
657658

0 commit comments

Comments
 (0)
0