Migrating from 1.x to 2.0
In composer.json
change "metabolism/wordpress-bundle": "1.4.*"
to "metabolism/wordpress-bundle": "2.0.*"
then run composer update -o
After update
Remove
src/Service/Context.php
Add
MIGRATE_FROM_V1
in your.env
Update
src/Controller/BlogController.php
, replaceuse App\Service\Context
withuse Metabolism\WordpressBundle\Service\ContextService as Context
Update
src/Controller/BlogController.php
, replacefrontAction
withhomeAction
Enable
WP Steroids
plugin
Please note that ContextService is deprecated and should be replaced using repository and arguments ( see doc or sample )
Last updated