You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: service_container/tags.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -607,7 +607,9 @@ The tagged services can be prioritized using the ``priority`` attribute:
607
607
$container->register(App\Handler\One::class)
608
608
->addTag('app.handler', ['priority' => 20]);
609
609
610
-
Note that any other custom attributes will be ignored by this feature.
610
+
.. note::
611
+
612
+
Note that any other custom attribute will be ignored by this feature.
611
613
612
614
613
615
Another option, which is particularly useful when using autoconfiguring tags, is to implement the ``getDefaultPriority`` static method on a collected class::
0 commit comments