Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Latest commit

 

History

History
79 lines (65 loc) · 2.53 KB

UPGRADE-2.0.md

File metadata and controls

79 lines (65 loc) · 2.53 KB

Upgrade from 1.x to 2.0

Sonata Admin

  • The SonataAdminBundle integration has been moved to symfony-cmf/sonata-admin-integration-bundle. This includes the classes in the Admin namespace and related services; and the use_sonata_admin, *_document_class and *_admin_class settings.

    Before

    # app/config/config.yml
    sonata_admin:
        extensions:
            cmf_block.admin_extension.cache:
                # ...

    After

    # app/config/config.yml
    sonata_admin:
        extensions:
            cmf_sonata_admin_integration.block.extension.cache:
                # ...

    Admin service names also changed. If you are using the admin, you need to adjust your configuration, i.e. in the sonata dashboard:

    Before:

         # app/config/config.yml
         sonata_admin:
             dashboard:
                groups:
                    content:
                        label: Content
                        icon: '<i class="fa fa-file-text-o"></i>'
                        items:
                            - cmf_block.simple_admin
                            - cmf_block.container_admin
                            - cmf_block.reference_admin
                            - cmf_block.action_admin

    After:

         # app/config/config.yml
         sonata_admin:
            dashboard:
                groups:
                    content:
                        label: Content
                        icon: '<i class="fa fa-file-text-o"></i>'
                        items:
                            - cmf_sonata_admin_integration.block.simple_admin
                            - cmf_sonata_admin_integration.block.container_admin
                            - cmf_sonata_admin_integration.block.reference_admin
                            - cmf_sonata_admin_integration.block.action_admin

Blocks

  • The ImagineBlock was removed from this bundle as the CmfMediaBundle is abandoned. Implement the block in your own application if you were using it.

Doctrine PHPCR ODM

  • It is no longer possible to add a child to the ActionBlock, MenuBlock, ReferenceBlock, RssBlock, SimpleBlock and StringBlock documents. This behaviour can be changed by overriding the child-class setting of the PHPCR ODM mapping.

  • Only instances of sonata's BlockInterface are allowed as children of the ContainerBlock and SlideshowBlock documents. This behaviour can be changed by overriding the child-class setting of the PHPCR ODM mapping.