Skip to content

Releases: webgriffe/SyliusAkeneoPlugin

v3.0.1

Choose a tag to compare

@lruozzi9 lruozzi9 released this 12 Mar 15:00

Full Changelog: v3.0.0...v3.0.1

v3.0.0 - Use Sylius TestApplication for plugin development

Choose a tag to compare

@lruozzi9 lruozzi9 released this 05 Feb 17:21

What's Changed

  • Migrate to use the new Sylius test app for plugins and fully support Sylius 2 by @lruozzi9 in #218

Upgrade from v2.9.x to v3.0

For full documentation, please check: https://webgriffe.github.io/SyliusAkeneoPlugin/upgrade/upgrade-3.*.html.

In this version, we have updated the plugin to be fully compatible with version 2 of Sylius and to use the Sylius test application for plugin development and testing.

  • The route @WebgriffeSyliusAkeneoPlugin/config/admin_routing.yaml has been renamed to @WebgriffeSyliusAkeneoPlugin/config/routes/admin.php.
  • The route @WebgriffeeSyliusAkeneoPlugin/config/webhook_routing.yaml has been renamed to @WebgriffeSyliusAkeneoPlugin/config/routes/webhook.php.
  • The route @WebgriffeSyliusAkeneoPlugin/config/config.yaml has been renamed to @WebgriffeSyliusAkeneoPlugin/config/config.php.
  • The template @WebgriffeSyliusAkeneoPlugin/ItemImportResult/Grid/Field/successful.html.twig has been renamed to @WebgriffeSyliusAkeneoPlugin/admin/item_import_result/grid/field/successful.html.twig.
  • The template @WebgriffeSyliusAkeneoPlugin/Product/Grid/Action/import.html.twig has been removed.

Please, note also the following BC (previously marked as deprecated) changes:

Error: The number of required arguments for Webgriffe\SyliusAkeneoPlugin\ValueHandler\AttributeValueHandler#__construct() increased from 4 to 5
Error: The parameter $akeneoPimClient of Webgriffe\SyliusAkeneoPlugin\ValueHandler\AttributeValueHandler#__construct() changed from Akeneo\Pim\ApiClient\AkeneoPimClientInterface|null to a non-contravariant Akeneo\Pim\ApiClient\AkeneoPimClientInterface
Error: The number of required arguments for Webgriffe\SyliusAkeneoPlugin\AttributeOptions\Importer#__construct() increased from 3 to 9
Error: The parameter $optionRepository of Webgriffe\SyliusAkeneoPlugin\AttributeOptions\Importer#__construct() changed from Sylius\Component\Product\Repository\ProductOptionRepositoryInterface|null to a non-contravariant Sylius\Component\Product\Repository\ProductOptionRepositoryInterface
Error: The parameter $translationLocaleProvider of Webgriffe\SyliusAkeneoPlugin\AttributeOptions\Importer#__construct() changed from Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface|null to a non-contravariant Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface
Error: The parameter $productOptionValueTranslationFactory of Webgriffe\SyliusAkeneoPlugin\AttributeOptions\Importer#__construct() changed from Sylius\Resource\Factory\FactoryInterface|null to a non-contravariant Sylius\Resource\Factory\FactoryInterface
Error: The parameter $productOptionValueFactory of Webgriffe\SyliusAkeneoPlugin\AttributeOptions\Importer#__construct() changed from Sylius\Resource\Factory\FactoryInterface|null to a non-contravariant Sylius\Resource\Factory\FactoryInterface
Error: The parameter $productOptionTranslationFactory of Webgriffe\SyliusAkeneoPlugin\AttributeOptions\Importer#__construct() changed from Sylius\Resource\Factory\FactoryInterface|null to a non-contravariant Sylius\Resource\Factory\FactoryInterface
Error: The parameter $translator of Webgriffe\SyliusAkeneoPlugin\AttributeOptions\Importer#__construct() changed from Symfony\Contracts\Translation\TranslatorInterface|null to a non-contravariant Symfony\Contracts\Translation\TranslatorInterface
Error: The number of required arguments for Webgriffe\SyliusAkeneoPlugin\Controller\WebhookController#__construct() increased from 3 to 4
Error: The parameter $eventDispatcher of Webgriffe\SyliusAkeneoPlugin\Controller\WebhookController#__construct() changed from Symfony\Component\EventDispatcher\EventDispatcherInterface|null to a non-contravariant Symfony\Component\EventDispatcher\EventDispatcherInterface

Full Changelog: v2.9.0...v3.0.0

2.9.0

Choose a tag to compare

@mmenozzi mmenozzi released this 27 Jun 13:16

What's Changed

💪 Improvements

🔧 Fixes and maintenance

📝 Upgrade notes

The v2.9.0 adds support to Sylius 2 and now requires:

  • PHP ^8.2
  • Sylius ^2.1.2
  • Symfony ^6.4 or ^7.1

If you are using those versions you can just upgrade the plugin to v2.9.0 and everything should work as expected.
Otherwise, you have to upgrade your Sylius and Symfony versions first or use the v2.8.0 version of the plugin.

There are also the following code BC breaks, but they are all related to the new Symfony and Sylius versions, so we don't consider them as this plugin BC breaks:

[BC] The return type of Webgriffe\SyliusAkeneoPlugin\ProductOptionValueHelperTrait#getProductOptionValueTranslationFactory() changed from Sylius\Component\Resource\Factory\FactoryInterface to the non-covariant Sylius\Resource\Factory\FactoryInterface
[BC] The return type of Webgriffe\SyliusAkeneoPlugin\ProductOptionValueHelperTrait#getProductOptionValueTranslationFactory() changed from Sylius\Component\Resource\Factory\FactoryInterface to Sylius\Resource\Factory\FactoryInterface
[BC] The return type of Webgriffe\SyliusAkeneoPlugin\ProductOptionValueHelperTrait#getProductOptionValueFactory() changed from Sylius\Component\Resource\Factory\FactoryInterface to the non-covariant Sylius\Resource\Factory\FactoryInterface
[BC] The return type of Webgriffe\SyliusAkeneoPlugin\ProductOptionValueHelperTrait#getProductOptionValueFactory() changed from Sylius\Component\Resource\Factory\FactoryInterface to Sylius\Resource\Factory\FactoryInterface
[BC] These ancestors of Webgriffe\SyliusAkeneoPlugin\Respository\ItemImportResultRepositoryInterface have been removed: ["Sylius\\Component\\Resource\\Repository\\RepositoryInterface"]
[BC] The number of required arguments for Symfony\Component\Console\Command\Command#setApplication() increased from 0 to 1
[BC] Parameter suggestedValues was added to Method addArgument() of class Symfony\Component\Console\Command\Command
[BC] Parameter suggestedValues was added to Method addOption() of class Symfony\Component\Console\Command\Command
[BC] The number of required arguments for Symfony\Component\Console\Command\Command#setApplication() increased from 0 to 1
[BC] Parameter suggestedValues was added to Method addArgument() of class Symfony\Component\Console\Command\Command
[BC] Parameter suggestedValues was added to Method addOption() of class Symfony\Component\Console\Command\Command
[BC] The number of required arguments for Symfony\Component\Console\Command\Command#setApplication() increased from 0 to 1
[BC] Parameter suggestedValues was added to Method addArgument() of class Symfony\Component\Console\Command\Command
[BC] Parameter suggestedValues was added to Method addOption() of class Symfony\Component\Console\Command\Command
[BC] The return type of Webgriffe\SyliusAkeneoPlugin\ProductOptionHelperTrait#getProductOptionTranslationFactory() changed from Sylius\Component\Resource\Factory\FactoryInterface to the non-covariant Sylius\Resource\Factory\FactoryInterface
[BC] The return type of Webgriffe\SyliusAkeneoPlugin\ProductOptionHelperTrait#getProductOptionTranslationFactory() changed from Sylius\Component\Resource\Factory\FactoryInterface to Sylius\Resource\Factory\FactoryInterface
[BC] The return type of Webgriffe\SyliusAkeneoPlugin\SyliusProductAttributeHelperTrait#getProductAttributeRepository() changed from Sylius\Component\Resource\Repository\RepositoryInterface to the non-covariant Sylius\Resource\Doctrine\Persistence\RepositoryInterface
[BC] The return type of Webgriffe\SyliusAkeneoPlugin\SyliusProductAttributeHelperTrait#getProductAttributeRepository() changed from Sylius\Component\Resource\Repository\RepositoryInterface to Sylius\Resource\Doctrine\Persistence\RepositoryInterface
[BC] Method Doctrine\ORM\EntityRepository#createNamedQuery() was removed
[BC] Method Doctrine\ORM\EntityRepository#createNativeNamedQuery() was removed
[BC] Method Doctrine\ORM\EntityRepository#clear() was removed
[BC] These ancestors of Webgriffe\SyliusAkeneoPlugin\Doctrine\ORM\ItemImportResultRepository have been removed: ["Sylius\\Component\\Resource\\Repository\\RepositoryInterface"]
[BC] The parameter $alias of Doctrine\ORM\EntityRepository#createQueryBuilder() changed from no type to a non-contravariant string
[BC] The parameter $indexBy of Doctrine\ORM\EntityRepository#createQueryBuilder() changed from no type to a non-contravariant string|null
[BC] The parameter $alias of Doctrine\ORM\EntityRepository#createResultSetMappingBuilder() changed from no type to a non-contravariant string
[BC] The parameter $lockMode of Doctrine\ORM\EntityRepository#find() changed from no type to a non-contravariant Doctrine\DBAL\LockMode|int|null
[BC] The parameter $lockVersion of Doctrine\ORM\EntityRepository#find() changed from no type to a non-contravariant int|null
[BC] The parameter $limit of Doctrine\ORM\EntityRepository#findBy() changed from no type to a non-contravariant int|null
[BC] The parameter $offset of Doctrine\ORM\EntityRepository#findBy() changed from no type to a non-contravariant int|null
[BC] The parameter $method of Doctrine\ORM\EntityRepository#__call() changed from no type to a non-contravariant string
[BC] The parameter $arguments of Doctrine\ORM\EntityRepository#__call() changed from no type to a non-contravariant array

Full Changelog: v2.8.1...v2.9.0

2.8.1

Choose a tag to compare

@lruozzi9 lruozzi9 released this 24 Jul 08:35

What's Changed

🔧 Fixes and maintenance

  • Fix for no more existing values for some locales by @lruozzi9 in #204

Full Changelog: v2.8.0...v2.8.1

2.8.0

Choose a tag to compare

@lruozzi9 lruozzi9 released this 24 Jul 07:59

What's Changed

💪 Improvements

📝 Upgrade notes

The v2.8.0 version introduces the Attribute importer.
If you want to import attribute and options translations from Akeneo you have to add the --importer="Attribute" option to the command that imports once a hour:

- 0   *   *  *  *  /path/to/sylius/bin/console -e prod -q webgriffe:akeneo:import --all --importer="AttributeOptions"
+ 0   *   *  *  *  /path/to/sylius/bin/console -e prod -q webgriffe:akeneo:import --all --importer="Attribute" --importer="AttributeOptions"

Full Changelog: v2.7.0...v2.8.0

2.7.0

Choose a tag to compare

@lruozzi9 lruozzi9 released this 27 May 09:44

What's Changed

Full Changelog: v2.6.1...v2.7.0

2.6.1

Choose a tag to compare

@lruozzi9 lruozzi9 released this 06 Mar 09:53

What's Changed

🔧 Fixes and maintenance

  • Do not flush any change to attribute config to avoid potential MySQL error irreversibly (2df2a42)

Full Changelog: v2.6.0...v2.6.1

2.6.0

Choose a tag to compare

@lruozzi9 lruozzi9 released this 15 Feb 15:54

What's Changed

💪 Improvements

  • Import missing attribute option while importing products (#199) by @lruozzi9 in #200

Maintainance

📝 Upgrade notes

  • A new deprecation in the Webgriffe\SyliusAkeneoPlugin\ValueHandler\AttributeValueHandler has been added in #199. The new parameter is:
    • AkeneoPimClientInterface $akeneoPimClient

Not passing that parameter will cause an error from v3.0.0.

Full Changelog: v2.5.0...v2.6.0

2.5.0

Choose a tag to compare

@lruozzi9 lruozzi9 released this 15 Dec 15:23

What's Changed

💪 Improvements

  • Allow to choose which product to import on webhook by @lruozzi9 in #196

📝 Upgrade notes

The v2.5.0 version now allows you to choose which product and product model to import through the webhook entry point.
Take a look at the customization documentation to see how to configure it.

Full Changelog: v2.4.0...v2.5.0

2.4.0 - Product model import

Choose a tag to compare

@lruozzi9 lruozzi9 released this 13 Dec 15:35

What's Changed

💪 Improvements

  • Import Product Models by @lruozzi9 in #191
  • Added French, Spanish, and German translations

📝 Upgrade notes

This version adds the ProductModel importer. If you are using the webhook no changes are requested as it will be automatically enqueued on every update.
If you are using the cronjob, you have to add the --importer="ProductModel" option to the command that imports every minute:

- *   *   *  *  *  /path/to/sylius/bin/console -e prod -q webgriffe:akeneo:import --since-file=/path/to/sylius/var/storage/akeneo-import-sincefile.txt --importer="Product" --importer="ProductAssociations"
+ *   *   *  *  *  /path/to/sylius/bin/console -e prod -q webgriffe:akeneo:import --since-file=/path/to/sylius/var/storage/akeneo-import-sincefile.txt --importer="Product" --importer="ProductModel" --importer="ProductAssociations"

Full Changelog: v2.3.0...v2.4.0