Releases: webgriffe/SyliusAkeneoPlugin
Release list
v3.0.1
v3.0.0 - Use Sylius TestApplication for plugin development
What's Changed
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.yamlhas been renamed to@WebgriffeSyliusAkeneoPlugin/config/routes/admin.php. - The route
@WebgriffeeSyliusAkeneoPlugin/config/webhook_routing.yamlhas been renamed to@WebgriffeSyliusAkeneoPlugin/config/routes/webhook.php. - The route
@WebgriffeSyliusAkeneoPlugin/config/config.yamlhas been renamed to@WebgriffeSyliusAkeneoPlugin/config/config.php. - The template
@WebgriffeSyliusAkeneoPlugin/ItemImportResult/Grid/Field/successful.html.twighas been renamed to@WebgriffeSyliusAkeneoPlugin/admin/item_import_result/grid/field/successful.html.twig. - The template
@WebgriffeSyliusAkeneoPlugin/Product/Grid/Action/import.html.twighas 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
What's Changed
💪 Improvements
🔧 Fixes and maintenance
- Bump webrick from 1.8.1 to 1.8.2 in /docs by @dependabot in #211
- Bump google-protobuf from 3.23.4 to 3.25.5 in /docs by @dependabot in #210
- Bump rexml from 3.2.8 to 3.3.6 in /docs by @dependabot in #209
- Bump rexml from 3.3.6 to 3.3.9 in /docs by @dependabot in #212
📝 Upgrade notes
The v2.9.0 adds support to Sylius 2 and now requires:
- PHP
^8.2 - Sylius
^2.1.2 - Symfony
^6.4or^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
2.8.0
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
2.6.1
2.6.0
What's Changed
💪 Improvements
Maintainance
📝 Upgrade notes
- A new deprecation in the
Webgriffe\SyliusAkeneoPlugin\ValueHandler\AttributeValueHandlerhas 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
What's Changed
💪 Improvements
📝 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
What's Changed
💪 Improvements
📝 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