- BC BREAK:
OrderShowMenuBuilderconstructor now requires the fourth argument beingSymfony\Component\Security\Csrf\CsrfTokenManagerInterfaceinstance due to security reasons.
- BC BREAK:
Sylius\Bundle\ResourceBundle\Controller::applyStateMachineTransitionActionmethod now includes CSRF token checks due to security reasons. If you used it for REST API, these checks can be disabled by addingcsrf_protection: falseto your routing configuration.
-
BC BREAK:
Sylius\Bundle\UserBundle\Controller\UserController's methodaddFlashhas been renamed toaddTranslatedFlashwith added scalar typehints for compatibility with both Symfony 3.4 and Symfony 4.0. -
Sylius\Bundle\CoreBundle\Installer\Requirement\FilesystemRequirements::__constructdeprecates passingstring $rootDiras 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\DefaultShippingMethodResolverhas been deprecated and will be removed in 2.0.Sylius\Component\Core\Resolver\EligibleDefaultShippingMethodResolvershould be used instead.
See all the changes in Sylius/Sylius-Standard here
-
Open
app/config/routing.ymland replace_liip_imagine: resource: "@LiipImagineBundle/Resources/config/routing.xml"
with
_liip_imagine: resource: "@LiipImagineBundle/Resources/config/routing.yaml"
-
Open
app/config/config.ymland 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
.babelrcfrom Sylius-Standard v1.2.x (see source here) -
Copy file
.eslintrc.jsfrom Sylius-Standard v1.2.x (see source here) -
Copy file
gulpfile.babel.jsfrom Sylius-Standard v1.2.x (see source here) -
Remove file
Gulpfile.js(and move your customisations togulpfile.babel.js) -
Synchronise
package.jsonwith v1.2.0 (see diff here) -
Synchronise
composer.jsonwith v1.2.0 (see diff here) -
Run
composer updateandyarn upgrade -
Copy file
vendor/sylius/sylius/app/migrations/Version20180226142349.phptoapp/migrations/ -
Clear cache by
bin/console cache:clear -
Run database migrations by
bin/console doctrine:migrations:migrate -
Install assets by
bin/console assets:install webandyarn run gulp