Skip to content

Commit 59c10ac

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: [DependencyInjection] `#[AutoconfigureTag]` can be used without tag name
2 parents 954e0a4 + 840aa55 commit 59c10ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

service_container/tags.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ base class or interface::
131131
// ...
132132
}
133133

134+
When no tag name is specified, the fully qualified class name (FQCN) of the target is used::
135+
136+
// src/Security/CustomInterface.php
137+
138+
#[AutoconfigureTag] // equivalent to #[AutoconfigureTag(self::class)]
139+
interface CustomInterface
140+
{
141+
// ...
142+
}
143+
134144
.. tip::
135145

136146
If you need more capabilities to autoconfigure instances of your base class

0 commit comments

Comments
 (0)