Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 2.01 KB

UPGRADE-2.0.md

File metadata and controls

55 lines (44 loc) · 2.01 KB

UPGRADE FROM 1.x to 2.0

General

  • The RequestAwarePass is removed. Use the request_stack service provided by Symfony instead.

  • The Doctrine registry and manager name can no longer be passed through the constructor of CmfHelper, use the setDoctrineRegistry() method instead.

SonataAdmin Support

  • The Admin extensions where moved into symfony-cmf/sonata-admin-integration-bundle. With the move, the admin extension service names also changed. If you are using one of the core extensions, you need to adjust your configuration.

    Before:

    # app/config/config.yml
    sonata_admin:
        extensions:
            cmf_core.admin_extension.child:
                    implements:
                        - Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
            cmf_core.admin_extension.publish_workflow.time_period:
                    implements:
                        - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
            cmf_core.admin_extension.publish_workflow.publishable:
                    implements:
                        - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface

    After:

    # app/config/config.yml
    sonata_admin:
        extensions:
                cmf_sonata_admin_integration.core.extension.child:
                    implements:
                        - Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
                cmf_sonata_admin_integration.core.extension.publish_workflow.time_period:
                    implements:
                        - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
                cmf_sonata_admin_integration.core.extension.publish_workflow.publishable:
                    implements:
                        - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface

Slugifier

  • The Slugifier namespace is removed, use the symfony-cmf/slugifier-api package and its interfaces instead.