A [BC BREAK] means the update will break the project for many reasons:
- new mandatory configuration
- new dependencies
- class refactoring
- [BC BREAK] Add dependency to SonataClassificationBundle to support virtual folders
- [BC BREAK] Add dependency to SonataIntlBundle, just enable the bundle in your AppKernel.
- [BC BREAK] Removed admin show action, now merged with admin edit action. As a result, controller method, route and template no longer exist.
-
[BC BREAK] Switched GalleryBlockService from nivo-gallery (no longer maintained) to Bootstrap3 carousel
If you overrode the GalleryBlockService or its template, the settings have changed:
animSpeed
,directionNav
andprogressBar
have been removedwrap
has been added
Moreover, the nivogallery jquery plugin has been removed.
- Updated twig template
SonataMediaBundle:Gallery:view.html.twig
- GalleryManager & MediaManager now extend DoctrineBaseManager from SonataCoreBundle.
- GalleryManager::update() is now deprecated, please use save() instead.
-
YouTube videos can now be inserted in HTML5.
Add in your config.yml:
sonata_media: providers: youtube: html5: true #default value is false
-
[BC BREAK] The provider metadata field now uses the "json" type from sonata-project/doctrine-extensions
Use the Migrate command to change old provider metadata fields into json:
app/console sonata:media:migrate-json --table=media__media