Skip to content

Commit 1be4874

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [DependencyInjection] Warns `instanceof` should be called before services registration
2 parents 76032cf + 80a2510 commit 1be4874

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

service_container/tags.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ If you want to apply tags automatically for your own services, use the
113113
->tag('app.custom_tag');
114114
};
115115
116+
.. caution::
117+
118+
If you're using PHP configuration, you need to call ``instanceof`` before
119+
any service registration to make sure tags are correctly applied.
120+
116121
It is also possible to use the ``#[AutoconfigureTag]`` attribute directly on the
117122
base class or interface::
118123

0 commit comments

Comments
 (0)