-
Field
createdByGuesthas been added toSylius\Component\Core\Model\Order, this change will allow us to distinguish carts between guests and logged in customers. -
Not passing
createdByGuestFlagResolverthrough constructor inSylius\Component\Core\Cart\Context\ShopBasedCartContextis deprecated in Sylius 1.10.9 and it will be prohibited in Sylius 2.0.
- Update
payum/payumto^1.7and execute Doctrine Migrations
If payum/payum is a root requirement (in the project's composer.json), then run:
composer require payum/payum:^1.7otherwise, run:
composer update payum/payumthen execute the migrations:
bin/console doctrine:migrations:migrate-
API is disabled by default, to enable it you need to set flag to
trueinconfig/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-bundlefrom yourcomposer.jsonand runcomposer update - remove
FOS\OAuthServerBundle\FOSOAuthServerBundleandSylius\Bundle\AdminApiBundle\SyliusAdminApiBundlefromconfig/bundles.php - remove
@SyliusAdminApiBundle/Resources/config/app/config.ymlimport fromconfig/packages/_sylius.yaml - remove
sylius_admin_apipackage configuration fromconfig/packages/_sylius.yaml - remove
oauth_tokenandapifirewalls fromconfig/security.yaml - remove
sylius.security.api_regexparameter and all its usage in access control fromconfig/security.yaml - remove
config/routes/sylius_admin_api.yamlfile - remove all classes from
src/Entity/AdminApidirectory
- Message buses
sylius_default.busandsylius_event.bushas been deprecated. Usesylius.command_busandsylius.event_businstead.
-
Sylius\Bundle\CoreBundle\EventListener\CartBlamerListenerhas been moved from CoreBundle to ShopBundle, renamed toSylius\Bundle\ShopBundle\EventListener\ShopCartBlamerListenerand adjusted to work properly when decoupled. -
Sylius\Bundle\CoreBundle\EventListener\UserCartRecalculationListenerhas been moved from CoreBundle to ShopBundle asSylius\Bundle\ShopBundle\EventListener\UserCartRecalculationListenerand adjusted to work properly when decoupled.
For changes according to the API v2, please visit API v2 upgrade file.