-
The support for Symfony 5.2 has been dropped, because it is not maintained version that has some security vulnerabilities. The recommended Symfony version to use with Sylius is 5.4 as it is the current long-term support version.
-
Order total
shipping rule has been changed toItems total
and now it is based on items total instead of order total.
- Order Processors' priorities have changed and
sylius.order_processing.order_prices_recalculator
has now a higher priority thansylius.order_processing.order_shipment_processor
.
Previous priorities:
sylius.order_processing.order_adjustments_clearer 60 Sylius\Component\Core\OrderProcessing\OrderAdjustmentsClearer
sylius.order_processing.order_shipment_processor 50 Sylius\Component\Core\OrderProcessing\OrderShipmentProcessor
sylius.order_processing.order_prices_recalculator 40 Sylius\Component\Core\OrderProcessing\OrderPricesRecalculator
...
Current priorities:
sylius.order_processing.order_adjustments_clearer 60 Sylius\Component\Core\OrderProcessing\OrderAdjustmentsClearer
sylius.order_processing.order_prices_recalculator 50 Sylius\Component\Core\OrderProcessing\OrderPricesRecalculator
sylius.order_processing.order_shipment_processor 40 Sylius\Component\Core\OrderProcessing\OrderShipmentProcessor
...
If you rely on previous priorities, you can bring them back by setting flag sylius_core.process_shipments_before_recalculating_prices
to true
in config/packages/_sylius.yaml
:
sylius_core:
process_shipments_before_recalculating_prices: true
However, it is not recommended because new priorities fix invalid estimated shipping costs.
-
Field
createdByGuest
has been added toSylius\Component\Core\Model\Order
, this change will allow us to distinguish carts between guests and logged in customers. -
Not passing
createdByGuestFlagResolver
through constructor inSylius\Component\Core\Cart\Context\ShopBasedCartContext
is deprecated in Sylius 1.10.9 and it will be prohibited in Sylius 2.0.
- Update
payum/payum
to^1.7
and execute Doctrine Migrations
If payum/payum
is a root requirement (in the project's composer.json
), then run:
composer require payum/payum:^1.7
otherwise, run:
composer update payum/payum
then execute the migrations:
bin/console doctrine:migrations:migrate
-
API is disabled by default, to enable it you need to set flag to
true
inconfig/packages/_sylius.yaml
:sylius_api: enabled: true
Sylius v1.10 extracts AdminApiBundle outside the core package. You might choose either to keep that bundle or remove it in case it's not used.
- Add Admin API Bundle to your application by running the following command:
composer require sylius/admin-api-bundle
- Before installing Sylius 1.10, run the following command to adjust the database schema:
bin/console doctrine:migrations:execute Sylius\\Bundle\\AdminApiBundle\\Migrations\\Version20161202011556 Sylius\\Bundle\\AdminApiBundle\\Migrations\\Version20170313125424 Sylius\\Bundle\\AdminApiBundle\\Migrations\\Version20170711151342 --down
- After installing Sylius v1.10, remove the remaining configuration by following the changes in this PR:
- remove
friendsofsymfony/oauth-server-bundle
from yourcomposer.json
and runcomposer update
- remove
FOS\OAuthServerBundle\FOSOAuthServerBundle
andSylius\Bundle\AdminApiBundle\SyliusAdminApiBundle
fromconfig/bundles.php
- remove
@SyliusAdminApiBundle/Resources/config/app/config.yml
import fromconfig/packages/_sylius.yaml
- remove
sylius_admin_api
package configuration fromconfig/packages/_sylius.yaml
- remove
oauth_token
andapi
firewalls fromconfig/security.yaml
- remove
sylius.security.api_regex
parameter and all its usage in access control fromconfig/security.yaml
- remove
config/routes/sylius_admin_api.yaml
file - remove all classes from
src/Entity/AdminApi
directory
- Message buses
sylius_default.bus
andsylius_event.bus
has been deprecated. Usesylius.command_bus
andsylius.event_bus
instead.
-
Sylius\Bundle\CoreBundle\EventListener\CartBlamerListener
has been moved from CoreBundle to ShopBundle, renamed toSylius\Bundle\ShopBundle\EventListener\ShopCartBlamerListener
and adjusted to work properly when decoupled. -
Sylius\Bundle\CoreBundle\EventListener\UserCartRecalculationListener
has been moved from CoreBundle to ShopBundle asSylius\Bundle\ShopBundle\EventListener\UserCartRecalculationListener
and adjusted to work properly when decoupled.
For changes according to the API v2, please visit API v2 upgrade file.