A [BC BREAK] means the update will break the project for many reasons:
- new mandatory configuration
- new dependencies
- class refactoring
- 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