- BC BREAK:
OrderShowMenuBuilder
constructor now requires the fourth argument beingSymfony\Component\Security\Csrf\CsrfTokenManagerInterface
instance due to security reasons.
- BC BREAK:
Sylius\Bundle\ResourceBundle\Controller::applyStateMachineTransitionAction
method now includes CSRF token checks due to security reasons. If you used it for REST API, these checks can be disabled by addingcsrf_protection: false
to your routing configuration.
-
BC BREAK:
Sylius\Bundle\UserBundle\Controller\UserController
's methodaddFlash
has been renamed toaddTranslatedFlash
with added scalar typehints for compatibility with both Symfony 3.4 and Symfony 4.0. -
Sylius\Bundle\CoreBundle\Installer\Requirement\FilesystemRequirements::__construct
deprecates passingstring $rootDir
as a second argument, remove it from your calls to be compatible with 2.0 release. -
The deprecated form mapping feature in SonataCoreBundle has been disabled in the app configuration included from SyliusCoreBundle. If you depend on the feature in your application, you will need to make the necessary changes. Refer to sonata-project/SonataCoreBundle#462 for more information.
-
liip/imagine-bundle has been upgraded to ^2.0, which contains BCs from previous ^1.9.1 version. Please read their upgrade guide https://github.com/liip/LiipImagineBundle/blob/2.0/UPGRADE.md.
-
Class
Sylius\Component\Core\Resolver\DefaultShippingMethodResolver
has been deprecated and will be removed in 2.0.Sylius\Component\Core\Resolver\EligibleDefaultShippingMethodResolver
should be used instead.
See all the changes in Sylius/Sylius-Standard
here
-
Open
app/config/routing.yml
and replace_liip_imagine: resource: "@LiipImagineBundle/Resources/config/routing.xml"
with
_liip_imagine: resource: "@LiipImagineBundle/Resources/config/routing.yaml"
-
Open
app/config/config.yml
and add the following lines at the end of file:liip_imagine: resolvers: default: web_path: web_root: "%kernel.project_dir%/web" cache_prefix: "media/cache"
-
Copy file
.babelrc
from Sylius-Standard v1.2.x (see source here) -
Copy file
.eslintrc.js
from Sylius-Standard v1.2.x (see source here) -
Copy file
gulpfile.babel.js
from Sylius-Standard v1.2.x (see source here) -
Remove file
Gulpfile.js
(and move your customisations togulpfile.babel.js
) -
Synchronise
package.json
with v1.2.0 (see diff here) -
Synchronise
composer.json
with v1.2.0 (see diff here) -
Run
composer update
andyarn upgrade
-
Copy file
vendor/sylius/sylius/app/migrations/Version20180226142349.php
toapp/migrations/
-
Clear cache by
bin/console cache:clear
-
Run database migrations by
bin/console doctrine:migrations:migrate
-
Install assets by
bin/console assets:install web
andyarn run gulp