Skip to content

v1.13.0

Compare
Choose a tag to compare
@lruozzi9 lruozzi9 released this 02 Feb 09:27
· 277 commits to master since this release

⚠️ BC Break

Attention, this version contains a BC break fixed in v1.13.2. Please, consider upgrading to this version.

💪 Improvements

🔧 Fixes

📝 Upgrade notes

  • Until now, the most relevant thing in configuring value handler options was their order. For example, in the previous versions you had:
    name:
        type: 'translatable_property'
        options:
            akeneo_attribute_code: 'name'
            sylius_translation_property_path: 'name'
    The key options akeneo_attribute_code and sylius_translation_property_path were not relevant for the connector (you could insert any label to your liking, also Goofy and Mickey Mouse!), it relied on the order of the parameters. With #105 we had to introduce an optional service after these mandatory options. So to make it possible we started to use the bind parameters by name feature by Symfony. So, even if this is not required unless you need to import an original price from Akeneo, we strongly recommend changing your parameters key label with the variable name as follows below, this will become necessary from v2.0.0 since the pass values by sort will be deprecated.
    name:
        type: 'translatable_property'
        options:
            $akeneoAttributeCode: 'name'
            $translationPropertyPath: 'name'
    You can find the variable name in the directory src/ValueHandler/ or check in the README file.
  • A new deprecation in the ProductEnqueueController has been added in #113. Not passing a translator will cause an error from v2.0.0. This is due to the deprecation of the method $this->get('translator') in Symfony 5.
  • The webgriffe_sylius_akeneo.ui.metric_amount_unit translation message is changed. In the #110 has been added a number formatted to format the number in the current locale. If you override it and you want to update it also in your project you can add this formatted simply by adding number after the amount: {amount, number}.

Full Changelog: 1.12.0...1.13.0