-
The SonataAdminBundle integration has been moved to
symfony-cmf/sonata-admin-integration-bundle
. This includes the classes in theAdmin
namespace and related services; and theuse_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
- The
ImagineBlock
was removed from this bundle as the CmfMediaBundle is abandoned. Implement the block in your own application if you were using it.
-
It is no longer possible to add a child to the
ActionBlock
,MenuBlock
,ReferenceBlock
,RssBlock
,SimpleBlock
andStringBlock
documents. This behaviour can be changed by overriding thechild-class
setting of the PHPCR ODM mapping. -
Only instances of sonata's
BlockInterface
are allowed as children of theContainerBlock
andSlideshowBlock
documents. This behaviour can be changed by overriding thechild-class
setting of the PHPCR ODM mapping.