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
@@ -622,7 +622,9 @@ The tagged services can be prioritized using the ``priority`` attribute:
622
622
$container->register(App\Handler\One::class)
623
623
->addTag('app.handler', ['priority' => 20]);
624
624
625
-
Note that any other custom attributes will be ignored by this feature.
625
+
.. note::
626
+
627
+
Note that any other custom attribute will be ignored by this feature.
626
628
627
629
628
630
Another option, which is particularly useful when using autoconfiguring tags, is to implement the ``getDefaultPriority`` static method on a collected class::
0 commit comments