Skip to content

Commit 5f1ddf0

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [DependencyInjection] `#[AutoconfigureTag]` can be used without tag name
2 parents 59400cd + 32d5461 commit 5f1ddf0

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
@@ -101,6 +101,16 @@ base class or interface::
101101
// ...
102102
}
103103

104+
When no tag name is specified, the fully qualified class name (FQCN) of the target is used::
105+
106+
// src/Security/CustomInterface.php
107+
108+
#[AutoconfigureTag] // equivalent to #[AutoconfigureTag(self::class)]
109+
interface CustomInterface
110+
{
111+
// ...
112+
}
113+
104114
.. tip::
105115

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

0 commit comments

Comments
 (0)