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: Attribute/TaggedIterator.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@
13
13
14
14
/**
15
15
* Autowires an iterator of services based on a tag name.
16
+
*
17
+
* @deprecated since Symfony 7.1, use {@see AutowireIterator} instead.
16
18
*/
17
19
#[\Attribute(\Attribute::TARGET_PARAMETER)]
18
20
class TaggedIterator extends AutowireIterator
@@ -33,6 +35,8 @@ public function __construct(
33
35
publicstring|array$exclude = [],
34
36
publicbool$excludeSelf = true,
35
37
) {
38
+
trigger_deprecation('symfony/dependency-injection', '7.1', 'The "%s" attribute is deprecated, use "%s" instead.', self::class, AutowireIterator::class);
Copy file name to clipboardExpand all lines: Attribute/TaggedLocator.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@
13
13
14
14
/**
15
15
* Autowires a locator of services based on a tag name.
16
+
*
17
+
* @deprecated since Symfony 7.1, use {@see AutowireLocator} instead.
16
18
*/
17
19
#[\Attribute(\Attribute::TARGET_PARAMETER)]
18
20
class TaggedLocator extends AutowireLocator
@@ -33,6 +35,8 @@ public function __construct(
33
35
publicstring|array$exclude = [],
34
36
publicbool$excludeSelf = true,
35
37
) {
38
+
trigger_deprecation('symfony/dependency-injection', '7.1', 'The "%s" attribute is deprecated, use "%s" instead.', self::class, AutowireLocator::class);
0 commit comments