Skip to content

Commit

Permalink
Deprecations fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasHermanek committed Jun 28, 2024
1 parent 6bd958f commit f999549
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/Distribution/ModuleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
) {
Expand Down
4 changes: 2 additions & 2 deletions src/Domain/AssetFile/AssetFileStatusFacadeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Domain/AssetMetadata/AssetMetadataAutocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
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
{
private readonly iterable $parsers;

public function __construct(
public readonly CustomFormProvider $customFormProvider,
#[TaggedIterator(tag: ElementParserInterface::class, indexAttribute: 'key')]
#[AutowireIterator(tag: ElementParserInterface::class, indexAttribute: 'key')]
iterable $parsers,
) {
$this->parsers = $parsers;
Expand Down
4 changes: 2 additions & 2 deletions src/Domain/AssetMetadata/AssetMetadataProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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,
) {
Expand Down
4 changes: 2 additions & 2 deletions src/Elasticsearch/IndexFactoryProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Elasticsearch/QueryFactoryProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Image/FilterProcessor/Stack/FilterProcessorStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Validator/Constraints/CustomDataValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit f999549

Please sign in to comment.