Skip to content

Releases: sonata-project/SonataMediaBundle

3.9.0

23 Nov 07:26
3.9.0
fad2d34
Compare
Choose a tag to compare

Added

  • Added option to set the img srcset tag by giving it an array of format names.

Changed

  • Rollback to PHP 5.6 as minimum support.

Fixed

  • fixed bug against twig 2.0 as translationBundle cannot be null
  • Silent sonata:media:remove-thumbnails command when running this command without arguments.
  • Sf3 compatibility on the sync-thumbnails command (dialog helper)
  • Sf3 compatibility on the refresh-metadata and update-cdn-status commands (dialog helper)
  • Use FormRenderer runtime to maintain compatibility with Symfony 3.4

3.8.0

22 Oct 21:38
3.8.0
b34364f
Compare
Choose a tag to compare

Removed

  • Support for old versions of php and Symfony.

3.7.0

22 Oct 21:38
3.7.0
Compare
Choose a tag to compare

Added

  • Added 'onDelete' => 'CASCADE' for mapping from GalleryHasMedia to Media and Gallery

Changed

  • Use SonataAdminBundle configuration to configure bundle services

Fixed

  • Prevent file from being removed if an error occurred while deleting its database entry.
  • deprecation notices related to addClassesToCompile

3.6.0

01 Aug 08:40
3.6.0
31a7250
Compare
Choose a tag to compare

Added

  • The Image Provider returns responsive images to the twig media helper.

Changed

  • Allowed jms/serializer-bundle ^2.0

Fixed

  • Change Youtube urls to use https
  • The DataTransformers and MediaTypes (both standard and API) now depend on Psr\Log\LoggerInterface in order to log any exception that could arise from $provider->transform() to get form errors when uploads are too big!
  • fix protocol error from image url returned by pixlr when sonata is under https protocol
  • Fixed hardcoded paths to classes in .xml.skeleton files of config
  • Ability to extend the MediaExtension class

3.5.1

31 Mar 09:43
3.5.1
e2900b0
Compare
Choose a tag to compare

Changed

  • allow knplabs/gaufrette v0.3.0

Fixed

  • Replace missing providers column by providerName on clean command

3.5.0

08 Mar 09:29
3.5.0
17162cc
Compare
Choose a tag to compare

Fixed

  • Optional dependency to SonataFormatterBundle is now on ^3.2
  • Fixed issue when using SonataMediaBundle blocks in conjunction with SonataPageBundle and page composer (Sonata sandbox)
  • Double padding on media list

Removed

  • Removed an ugly hack to retrieve configuration on AddProviderCompilerPass

3.4.0

28 Feb 13:53
3.4.0
13dc6ff
Compare
Choose a tag to compare

Added

  • An icon to admin menu (fa-image)
  • Added getRequest method on controller for BC with Symfony 2.3+
  • Added test on MediaAdminController

Changed

  • Replaced form types for the FQCN's

Fixed

  • Support for Twig 2.0
  • Callback contraint is not a valid callable on Symfony 3
  • BaseAdmin incorrectly retrieved providerName
  • Fixed BlockBundle deprecation messages
  • Fixed pager test with DatagridBundle 2.2.1
  • Media List is now filterable by Category again
  • Incorrect access to providerName parameter in request in Admin/BaseMediaAdmin.php
  • Wrong FQCN's and added missing end() on GalleryAdmin
  • Calling a macro without importing it is an error on twig 2.0
  • Remove deprecations from non FQCNs on form types on MediaAdmin

Removed

  • cascade_validation from GalleryAdmin
  • ClassificationBundle is now an optional dependency

3.3.1

02 Feb 10:08
3.3.1
f5985ac
Compare
Choose a tag to compare

Added

  • Added filesize check to upload
  • Added empty filename check to upload
  • Generate thumbnails asynchronously if creating Media on console commands.

Changed

  • translation in twig templates now uses the twig translation filter
  • Moved ApiDoc groups from string to array.

Fixed

  • Deprecation warning for addDownloadSecurity
  • Moved FosRest groups from string to array and reimplemented the orderBy parameter enabling support for FosRestBundle>=2.0.
  • Missing italian translations

3.3.0

08 Sep 12:50
3.3.0
fabd14b
Compare
Choose a tag to compare

Added

  • Added config key to define default resizer
  • Added config key to define default resizer adapter

Fixed

  • The provider and context options are now required
  • Use $request instead of $this->get('request')

Removed

  • Ability to provide custom attributes for a thumbnail

3.2.0

18 Aug 13:05
3.2.0
3ca7013
Compare
Choose a tag to compare

Added

  • Created getReferenceUrl method for all video providers
  • Add parameter to specify aws_sdk version

Changed

  • Allow knplabs/gaufrette ^0.2
  • Update configuration and metadatabuilder to comply with AWS SDK 3.x

Fixed

  • Fixed wrong block inheritance in edit template
  • Fixed wrong html usage in edit template
  • Fixed loop in Pool::getDownloadSecurity
  • Fixed deprecated call of downloadSecurity in Resources/views/MediaAdmin/edit.html.twig template.