Skip to content

Commit 3b4a099

Browse files
committed
Use AutowireIterator instead of deprecated TaggedIterator
1 parent 161a9e9 commit 3b4a099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Services/EntityMergers/EntityMerger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
namespace App\Services\EntityMergers;
2525

2626
use App\Services\EntityMergers\Mergers\EntityMergerInterface;
27-
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;
27+
use Symfony\Component\DependencyInjection\Attribute\AutowireIterator;
2828

2929
/**
3030
* This service is used to merge two entities together.
3131
* It automatically finds the correct merger (implementing EntityMergerInterface) for the two entities if one exists.
3232
*/
3333
class EntityMerger
3434
{
35-
public function __construct(#[TaggedIterator('app.entity_merger')] protected iterable $mergers)
35+
public function __construct(#[AutowireIterator('app.entity_merger')] protected iterable $mergers)
3636
{
3737
}
3838

@@ -73,4 +73,4 @@ public function merge(object $target, object $other, array $context = []): objec
7373
}
7474
return $merger->merge($target, $other, $context);
7575
}
76-
}
76+
}

0 commit comments

Comments
 (0)