Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface AssetAttributeValueBuilderInterface
{
public const TAG_ID = 'sylius.akeneo.asset_value_builder';

public function support(string $assetFamilyCode, string $attributeCode): bool;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class ProductAttributeValueValueBuilder
public function __construct(
private LoggerInterface $akeneoLogger,
/** @var iterable<ProductAttributeValueValueBuilderInterface> $attributeValueBuilders */
#[AutowireIterator(ProductAttributeValueValueBuilderInterface::TAG_ID)]
#[AutowireIterator(ProductAttributeValueValueBuilderInterface::class)]
private iterable $attributeValueBuilders,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface ProductAttributeValueValueBuilderInterface
{
public const TAG_ID = 'sylius.akeneo.attribute_value_value_builder';

public function support(string $attributeCode): bool;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
use Sylius\Component\Product\Model\ProductOptionValueInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface DynamicOptionValueBuilderInterface
{
public const TAG_ID = 'sylius.akeneo.dynamic_option_value_builder';

public static function getDefaultPriority(): int;

public function support(ProductOptionInterface $productOption, mixed $values, array $context = []): bool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ProductOptionValueBuilder implements ProductOptionValueBuilderInterface
{
public function __construct(
/** @var iterable<DynamicOptionValueBuilderInterface> $dynamicProductOptionValueBuilders */
#[AutowireIterator(DynamicOptionValueBuilderInterface::TAG_ID)]
#[AutowireIterator(DynamicOptionValueBuilderInterface::class)]
private iterable $dynamicProductOptionValueBuilders,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ProductOptionValueTranslationBuilder implements ProductOptionValueTranslat
{
public function __construct(
/** @var iterable<ProductOptionValueTranslationBuilderInterface> $productOptionValueTranslationBuilders */
#[AutowireIterator(ProductOptionValueTranslationBuilderInterface::TAG_ID)]
#[AutowireIterator(ProductOptionValueTranslationBuilderInterface::class)]
private iterable $productOptionValueTranslationBuilders,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
use Sylius\Component\Product\Model\ProductOptionValueTranslationInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface ProductOptionValueTranslationBuilderInterface
{
public const TAG_ID = 'sylius.akeneo.dynamic_option_value_translation_builder';

public static function getDefaultPriority(): int;

public function support(
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/TaxonAttribute/TaxonAttributeValueBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
final class TaxonAttributeValueBuilder
{
public function __construct(
#[AutowireIterator(TaxonAttributeValueBuilderInterface::TAG_ID)]
#[AutowireIterator(TaxonAttributeValueBuilderInterface::class)]
private iterable $attributeValueBuilders,
private LoggerInterface $akeneoLogger,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface TaxonAttributeValueBuilderInterface
{
public const TAG_ID = 'sylius.akeneo.taxon.attribute_value_builder';

public function support(string $attributeCode, string $type): bool;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/Category/CategoryProcessorChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class CategoryProcessorChain implements CategoryProcessorChainInterface
{
public function __construct(
/** @var iterable<CategoryProcessorInterface> $categoryProcessors */
#[AutowireIterator(CategoryProcessorInterface::TAG_ID)]
#[AutowireIterator(CategoryProcessorInterface::class)]
private iterable $categoryProcessors,
private LoggerInterface $akeneoLogger,
) {
Expand Down
4 changes: 1 addition & 3 deletions src/Processor/Category/CategoryProcessorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
use Sylius\Component\Core\Model\TaxonInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface CategoryProcessorInterface
{
public const TAG_ID = 'sylius.akeneo.category_processor';

public function process(TaxonInterface $taxon, array $resource): void;

public function support(TaxonInterface $taxon, array $resource): bool;
Expand Down
2 changes: 1 addition & 1 deletion src/Processor/Product/ProductProcessorChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class ProductProcessorChain implements ProductProcessorChainInterface
{
public function __construct(
/** @var iterable<ProductProcessorInterface> $productProcessors */
#[AutowireIterator(ProductProcessorInterface::TAG_ID)]
#[AutowireIterator(ProductProcessorInterface::class)]
private iterable $productProcessors,
private LoggerInterface $akeneoLogger,
) {
Expand Down
4 changes: 1 addition & 3 deletions src/Processor/Product/ProductProcessorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
use Sylius\Component\Core\Model\ProductInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface ProductProcessorInterface
{
public const TAG_ID = 'sylius.akeneo.product_processor';

public function process(ProductInterface $product, array $resource): void;

public function support(ProductInterface $product, array $resource): bool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface AkeneoAttributeProcessorInterface
{
public const TAG_ID = 'sylius.akeneo.attribute_processor';

public static function getDefaultPriority(): int;

public function support(string $attributeCode, array $context = []): bool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface ReferenceEntityAttributeValueProcessorInterface
{
public const TAG_ID = 'sylius.akeneo.reference_entity_attribute_value_processor';

public static function getDefaultPriority(): int;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
use Sylius\Component\Product\Model\ProductAttributeInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface TableProductAttributeValueProcessorInterface
{
public const TAG_ID = 'sylius.akeneo.table_product_attribute_value_processor';

public static function getDefaultPriority(): int;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
use Sylius\Component\Product\Model\ProductOptionInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface OptionValuesProcessorInterface
{
public const TAG_ID = 'sylius.akeneo.option_values_processor';

public static function getDefaultPriority(): int;

public function support(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class ProductVariantProcessorChain implements ProductVariantProcessorChain
{
public function __construct(
/** @var iterable<ProductVariantProcessorInterface> $productVariantProcessors */
#[AutowireIterator(ProductVariantProcessorInterface::TAG_ID)]
#[AutowireIterator(ProductVariantProcessorInterface::class)]
private iterable $productVariantProcessors,
private LoggerInterface $akeneoLogger,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
use Sylius\Component\Core\Model\ProductVariantInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface ProductVariantProcessorInterface
{
public const TAG_ID = 'sylius.akeneo.product_variant_processor';

public function process(ProductVariantInterface $productVariant, array $resource): void;

public function support(ProductVariantInterface $productVariant, array $resource): bool;
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/AkeneoAttributeProcessorProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class AkeneoAttributeProcessorProvider implements AkeneoAttributeProcessor
{
public function __construct(
/** @var iterable<AkeneoAttributeProcessorInterface> $akeneoAttributeProcessors */
#[AutowireIterator(AkeneoAttributeProcessorInterface::TAG_ID)]
#[AutowireIterator(AkeneoAttributeProcessorInterface::class)]
private iterable $akeneoAttributeProcessors,
) {
}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Asset/AssetAttributeTypeMatcherProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class AssetAttributeTypeMatcherProvider implements AssetAttributeTypeMatch
{
public function __construct(
/** @var iterable<AssetAttributeTypeMatcherInterface> $typeMatchers */
#[AutowireIterator(AssetAttributeTypeMatcherInterface::TAG_ID)]
#[AutowireIterator(AssetAttributeTypeMatcherInterface::class)]
private iterable $typeMatchers,
private LoggerInterface $akeneoLogger,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Asset/AssetValueBuilderProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class AssetValueBuilderProvider implements AssetValueBuilderProviderInterf
{
public function __construct(
/** @var iterable<AssetAttributeValueBuilderInterface> $assetAttributeValueBuilders */
#[AutowireIterator(AssetAttributeValueBuilderInterface::TAG_ID)]
#[AutowireIterator(AssetAttributeValueBuilderInterface::class)]
private iterable $assetAttributeValueBuilders,
private LoggerInterface $akeneoLogger,
private EditionCheckerInterface $editionChecker,
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/ChainOptionValuesProcessorProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class ChainOptionValuesProcessorProvider implements OptionValuesProcessorP
{
public function __construct(
/** @var iterable<OptionValuesProcessorInterface> $optionValuesProcessors */
#[AutowireIterator(OptionValuesProcessorInterface::TAG_ID)]
#[AutowireIterator(OptionValuesProcessorInterface::class)]
private iterable $optionValuesProcessors,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class TableAttributeValueProcessorProvider implements TableAttributeValueProcessorProviderInterface
{
public function __construct(
#[AutowireIterator(TableProductAttributeValueProcessorInterface::TAG_ID)]
#[AutowireIterator(TableProductAttributeValueProcessorInterface::class)]
private iterable $tableAttributeValueProcessors,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class ProductRefEntityAttributeValueValueBuilderProvider implements Produc
{
public function __construct(
/** @var iterable<ReferenceEntityAttributeValueProcessorInterface> $referenceEntityAttributeValueProcessors */
#[AutowireIterator(ReferenceEntityAttributeValueProcessorInterface::TAG_ID)]
#[AutowireIterator(ReferenceEntityAttributeValueProcessorInterface::class)]
private iterable $referenceEntityAttributeValueProcessors,
) {
}
Expand Down
2 changes: 1 addition & 1 deletion src/Transformer/DataMigration/DataMigrationTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class DataMigrationTransformer
{
public function __construct(
/** @var iterable<DataMigrationTransformerInterface> $dataMigrationTransformers */
#[AutowireIterator(DataMigrationTransformerInterface::TAG_ID)]
#[AutowireIterator(DataMigrationTransformerInterface::class)]
private iterable $dataMigrationTransformers,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface DataMigrationTransformerInterface
{
public const TAG_ID = 'sylius.akeneo.data_migration_transformer';

public function support(string $fromType, string $toType): bool;

public function transform(mixed $value): array;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
use Synolia\SyliusAkeneoPlugin\TypeMatcher\TypeMatcherInterface;

#[AutoconfigureTag(self::TAG_ID)]
#[AutoconfigureTag]
interface AssetAttributeTypeMatcherInterface extends TypeMatcherInterface
{
public const TAG_ID = 'sylius.akeneo.asset_attribute_type_matcher';
}
2 changes: 1 addition & 1 deletion src/TypeMatcher/Attribute/AttributeTypeMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class AttributeTypeMatcher
{
public function __construct(
/** @var iterable<AttributeTypeMatcherInterface> $typeMatchers */
#[AutowireIterator(AttributeTypeMatcherInterface::TAG_ID)]
#[AutowireIterator(AttributeTypeMatcherInterface::class)]
private iterable $typeMatchers,
private LoggerInterface $akeneoLogger,
) {
Expand Down
3 changes: 1 addition & 2 deletions src/TypeMatcher/Attribute/AttributeTypeMatcherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
use Synolia\SyliusAkeneoPlugin\TypeMatcher\TypeMatcherInterface;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface AttributeTypeMatcherInterface extends TypeMatcherInterface
{
public const TAG_ID = 'sylius.akeneo.type_matcher';
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class ReferenceEntityAttributeTypeMatcher
{
public function __construct(
/** @var iterable<ReferenceEntityAttributeTypeMatcherInterface> $typeMatchers */
#[AutowireIterator(ReferenceEntityAttributeTypeMatcherInterface::TAG_ID)]
#[AutowireIterator(ReferenceEntityAttributeTypeMatcherInterface::class)]
private iterable $typeMatchers,
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@
#[AutoconfigureTag]
interface ReferenceEntityAttributeTypeMatcherInterface extends TypeMatcherInterface
{
public const TAG_ID = 'sylius.akeneo.reference_entity_attribute_type_matcher';

public function getStorageType(): string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class TaxonAttributeTypeMatcher
{
public function __construct(
/** @var iterable<TaxonAttributeTypeMatcherInterface> $typeMatchers */
#[AutowireIterator(TaxonAttributeTypeMatcherInterface::TAG_ID)]
#[AutowireIterator(TaxonAttributeTypeMatcherInterface::class)]
private iterable $typeMatchers,
private LoggerInterface $akeneoLogger,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
use Synolia\SyliusAkeneoPlugin\TypeMatcher\TypeMatcherInterface;

#[AutoconfigureTag(name: self::TAG_ID)]
#[AutoconfigureTag]
interface TaxonAttributeTypeMatcherInterface extends TypeMatcherInterface
{
public const TAG_ID = 'sylius.akeneo.type_matcher.taxon.attribute';

public function getAttributeType(): AttributeTypeInterface;
}
Loading