From f99954949becc37d6c089d7bb0665380a7560fb9 Mon Sep 17 00:00:00 2001 From: Tomas Hermanek Date: Fri, 28 Jun 2024 08:10:26 +0200 Subject: [PATCH] Deprecations fixed. --- src/Distribution/ModuleProvider.php | 4 ++-- src/Domain/AssetFile/AssetFileStatusFacadeProvider.php | 4 ++-- src/Domain/AssetMetadata/AssetMetadataAutocomplete.php | 4 ++-- src/Domain/AssetMetadata/AssetMetadataProcessor.php | 4 ++-- .../IndexDefinition/CustomDataIndexDefinitionFactory.php | 4 ++-- src/Elasticsearch/IndexFactoryProvider.php | 4 ++-- src/Elasticsearch/QueryFactoryProvider.php | 4 ++-- src/Image/FilterProcessor/Stack/FilterProcessorStack.php | 4 ++-- src/Validator/Constraints/CustomDataValidator.php | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Distribution/ModuleProvider.php b/src/Distribution/ModuleProvider.php index d5e435b1..72ae2fcb 100644 --- a/src/Distribution/ModuleProvider.php +++ b/src/Distribution/ModuleProvider.php @@ -7,7 +7,7 @@ use AnzuSystems\CoreDamBundle\Distribution\Modules\MockDistributionModule; use AnzuSystems\CoreDamBundle\Domain\Configuration\DistributionConfigurationProvider; use AnzuSystems\CoreDamBundle\Exception\RuntimeException; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; use Traversable; final class ModuleProvider @@ -23,7 +23,7 @@ final class ModuleProvider private array $adapterCache = []; public function __construct( - #[TaggedIterator(tag: DistributionModuleInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: DistributionModuleInterface::class, indexAttribute: 'key')] Traversable $distributionModules, private readonly DistributionConfigurationProvider $configurationProvider, ) { diff --git a/src/Domain/AssetFile/AssetFileStatusFacadeProvider.php b/src/Domain/AssetFile/AssetFileStatusFacadeProvider.php index 55298b75..fe4848c4 100644 --- a/src/Domain/AssetFile/AssetFileStatusFacadeProvider.php +++ b/src/Domain/AssetFile/AssetFileStatusFacadeProvider.php @@ -6,14 +6,14 @@ use AnzuSystems\CoreDamBundle\Entity\AssetFile; use AnzuSystems\CoreDamBundle\Exception\InvalidArgumentException; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; final class AssetFileStatusFacadeProvider { private iterable $fileStatusFacades; public function __construct( - #[TaggedIterator(tag: AssetFileStatusInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: AssetFileStatusInterface::class, indexAttribute: 'key')] iterable $fileStatusFacades, ) { $this->fileStatusFacades = $fileStatusFacades; diff --git a/src/Domain/AssetMetadata/AssetMetadataAutocomplete.php b/src/Domain/AssetMetadata/AssetMetadataAutocomplete.php index 0cb4566f..33ca80a8 100644 --- a/src/Domain/AssetMetadata/AssetMetadataAutocomplete.php +++ b/src/Domain/AssetMetadata/AssetMetadataAutocomplete.php @@ -10,7 +10,7 @@ use AnzuSystems\CoreDamBundle\Entity\CustomFormElement; use AnzuSystems\CoreDamBundle\Exception\DomainException; use Doctrine\ORM\NonUniqueResultException; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; final class AssetMetadataAutocomplete { @@ -18,7 +18,7 @@ final class AssetMetadataAutocomplete public function __construct( public readonly CustomFormProvider $customFormProvider, - #[TaggedIterator(tag: ElementParserInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: ElementParserInterface::class, indexAttribute: 'key')] iterable $parsers, ) { $this->parsers = $parsers; diff --git a/src/Domain/AssetMetadata/AssetMetadataProcessor.php b/src/Domain/AssetMetadata/AssetMetadataProcessor.php index c78556cb..2ea75aff 100644 --- a/src/Domain/AssetMetadata/AssetMetadataProcessor.php +++ b/src/Domain/AssetMetadata/AssetMetadataProcessor.php @@ -10,7 +10,7 @@ use AnzuSystems\CoreDamBundle\Entity\ImageFile; use AnzuSystems\CoreDamBundle\Exiftool\Exiftool; use AnzuSystems\SerializerBundle\Exception\SerializerException; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; use Symfony\Component\HttpFoundation\File\File as BaseFile; final class AssetMetadataProcessor @@ -27,7 +27,7 @@ public function __construct( private readonly array $exifCommonMetadata, private readonly Exiftool $exiftool, private readonly ResourceLocker $resourceLocker, - #[TaggedIterator(tag: DataSuggesterInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: DataSuggesterInterface::class, indexAttribute: 'key')] iterable $dataSuggesters, ) { $this->dataSuggesters = $dataSuggesters; diff --git a/src/Elasticsearch/IndexDefinition/CustomDataIndexDefinitionFactory.php b/src/Elasticsearch/IndexDefinition/CustomDataIndexDefinitionFactory.php index 57bed1d0..f7c6f926 100644 --- a/src/Elasticsearch/IndexDefinition/CustomDataIndexDefinitionFactory.php +++ b/src/Elasticsearch/IndexDefinition/CustomDataIndexDefinitionFactory.php @@ -8,7 +8,7 @@ use AnzuSystems\CoreDamBundle\Domain\CustomForm\CustomFormProvider; use AnzuSystems\CoreDamBundle\Entity\CustomFormElement; use AnzuSystems\CoreDamBundle\Exception\DomainException; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; final class CustomDataIndexDefinitionFactory { @@ -17,7 +17,7 @@ final class CustomDataIndexDefinitionFactory private readonly iterable $indexBuilders; public function __construct( - #[TaggedIterator(tag: IndexBuilderInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: IndexBuilderInterface::class, indexAttribute: 'key')] iterable $indexBuilders, private readonly CustomFormProvider $customFormProvider, ) { diff --git a/src/Elasticsearch/IndexFactoryProvider.php b/src/Elasticsearch/IndexFactoryProvider.php index 5925b340..799c1afb 100644 --- a/src/Elasticsearch/IndexFactoryProvider.php +++ b/src/Elasticsearch/IndexFactoryProvider.php @@ -6,7 +6,7 @@ use AnzuSystems\CoreDamBundle\Elasticsearch\IndexFactory\IndexFactoryInterface; use AnzuSystems\CoreDamBundle\Exception\DomainException; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; final class IndexFactoryProvider { @@ -16,7 +16,7 @@ final class IndexFactoryProvider private iterable $indexFactories; public function __construct( - #[TaggedIterator(tag: IndexFactoryInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: IndexFactoryInterface::class, indexAttribute: 'key')] iterable $indexFactories, ) { $this->indexFactories = $indexFactories; diff --git a/src/Elasticsearch/QueryFactoryProvider.php b/src/Elasticsearch/QueryFactoryProvider.php index 0a927598..15b28927 100644 --- a/src/Elasticsearch/QueryFactoryProvider.php +++ b/src/Elasticsearch/QueryFactoryProvider.php @@ -8,7 +8,7 @@ use AnzuSystems\CoreDamBundle\Elasticsearch\SearchDto\SearchDtoInterface; use AnzuSystems\CoreDamBundle\Exception\DomainException; use Doctrine\Common\Util\ClassUtils; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; final class QueryFactoryProvider { @@ -18,7 +18,7 @@ final class QueryFactoryProvider private iterable $queryFactories; public function __construct( - #[TaggedIterator(tag: QueryFactoryInterface::class)] + #[AutowireIterator(tag: QueryFactoryInterface::class)] iterable $queryFactories, ) { $this->queryFactories = $queryFactories; diff --git a/src/Image/FilterProcessor/Stack/FilterProcessorStack.php b/src/Image/FilterProcessor/Stack/FilterProcessorStack.php index 69adbef9..f5cb670e 100644 --- a/src/Image/FilterProcessor/Stack/FilterProcessorStack.php +++ b/src/Image/FilterProcessor/Stack/FilterProcessorStack.php @@ -7,14 +7,14 @@ use AnzuSystems\CoreDamBundle\Exception\ImageManipulatorException; use AnzuSystems\CoreDamBundle\Image\Filter\ImageFilterInterface; use AnzuSystems\CoreDamBundle\Image\FilterProcessor\FilterProcessorInterface; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; final class FilterProcessorStack { private iterable $filterProcessors; public function __construct( - #[TaggedIterator(tag: FilterProcessorInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: FilterProcessorInterface::class, indexAttribute: 'key')] iterable $filterProcessors, ) { $this->filterProcessors = $filterProcessors; diff --git a/src/Validator/Constraints/CustomDataValidator.php b/src/Validator/Constraints/CustomDataValidator.php index 7253b45d..8185b364 100644 --- a/src/Validator/Constraints/CustomDataValidator.php +++ b/src/Validator/Constraints/CustomDataValidator.php @@ -13,7 +13,7 @@ use AnzuSystems\CoreDamBundle\Entity\Interfaces\ResourceCustomFormProvidableInterface; use AnzuSystems\CoreDamBundle\Exception\DomainException; use Doctrine\ORM\NonUniqueResultException; -use Symfony\Component\DependencyInjection\Attribute\TaggedIterator; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; use Symfony\Component\Validator\Exception\UnexpectedTypeException; @@ -26,7 +26,7 @@ class CustomDataValidator extends ConstraintValidator public function __construct( protected readonly CustomFormProvider $customFormProvider, - #[TaggedIterator(tag: ElementValidatorInterface::class, indexAttribute: 'key')] + #[AutowireIterator(tag: ElementValidatorInterface::class, indexAttribute: 'key')] iterable $validators, ) { $this->validators = $validators;