Skip to content

Releases: sonata-project/SonataMediaBundle

3.31.0

26 Mar 10:43
3.31.0
Compare
Choose a tag to compare

Added

  • [#1923] Added support for symfony/translation-contracts ^1.1 || ^2.0 (@wbloszyk)
  • [#1943] Conflict against nelmio/api-doc-bundle <2.13.5 || >=4.0 (@phansys)
  • [#1939] Stricter type checks for arguments at RolesDownloadStrategy::__construct() (@phansys)
  • [#1939] Stricter type checks for arguments at SessionDownloadStrategy::__construct() (@phansys)
  • [#1906] Added support for PHP 8.x (@Yozhef)
  • [#1930] Support for "symfony/templating:^5.2" (@phansys)
  • [#1930] Support for "symfony/http-foundation:^5.2" (@phansys)
  • [#1930] Support for "symfony/dependency-injection:^5.2" (@phansys)
  • [#1930] Support for "symfony/config:^5.2" (@phansys)
  • [#1930] Support for "symfony/routing:^5.2" (@phansys)
  • [#1940] Added CropResizer (@core23)

Deprecated

  • [#1778] Replicate::$master and Replicate::$slave, in favor of Replicate::$primary and Replicate::$secondary (@dps910)

Removed

3.30.0

15 Feb 21:17
c2a6c0b
Compare
Choose a tag to compare

Added

  • [#1907] Support sonata-project/datagrid-bundle:^3.0 (@Yozhef)

3.29.0

30 Nov 11:54
3.29.0
Compare
Choose a tag to compare

Fixed

  • [#1866] Guessing the content type of a file stored on Amazon S3 (@jorrit)
  • [#1863] SonataMediaBundle.it.xliff fixed "gallery" and "Gallery" translations (case) (@gremo)

3.28.0

30 Oct 17:34
3.28.0
99dcae1
Compare
Choose a tag to compare

Added

  • [#1823] Added CDN flush status check at BaseProvider::flushCdn() in order to resolve previous flushing processes. (@phansys)
  • [#1848] Missing translations (@gremo) - [#1834] Support for symfony/validator ^5.1 (@jorrit)
  • [#1664] Added support for psr/http-client in BaseVideoProvider (@core23)

Changed

  • [#1848] gallery translation key into Gallery (@gremo)
  • [#1821] When using Doctrine ORM or MongoDB the service sonata.media.admin.media.manager is now an alias of sonata.admin.manager.orm or sonata.admin.manager.doctrine_mongodb instead of a separate service implemented by the same class. (@jorrit)

Deprecated

  • [#1815] Deprecated method signature for CloudFront::__construct(); (@phansys)
  • [#1815] Deprecated methods CloudFront::setClient() and CloudFront::getStatusList(); (@phansys)
  • [#1815] Deprecated returning false or any value not present in the CDNInterface::STATUS_* constants from CloudFront::getFlushStatus(). (@phansys)
  • [#1841] sonata.media.adapter.filesystem.mogilefs and sonata.media.filesystem.mogilefs services; (@phansys)
  • [#1841] sonata_media.filesystem.mogilefs configuration node. (@phansys)
  • [#1664] Deprecate Guzzle and Buzz usage in BaseVideoProvider (@core23)
  • [#1814] Deprecated sonata_media.filesystem.s3.sdk_version configuration node. (@phansys)

Fixed

  • [#1815] Fixed getting values returned by CloudFrontClient::createInvalidation() and CloudFrontClient::getInvalidation() methods when using "aws/aws-sdk-php:^3.0". (@phansys)
  • [#1823] Fixed marking the medium as not CDN synced (Media::$cdnIsFlushable) in BaseProvider::flushCdn() and UpdateCdnStatusCommand. (@phansys)
  • [#1847] Error on YouTube media creation in ImageUploadDimensionValidator (@tambait)
  • [#1832] Fixed validity of *.orm.xml mapping files. (@jorrit)
  • [#1821] Deprecation notice in Sonata\DoctrineORMAdminBundle\Model\ModelManager and Sonata\DoctrineMongoDBAdminBundle\Model\ModelManager. (@jorrit)
  • [#1716] Invalid mongodb xml mapping for BaseGallery.mongodb.xml and BaseMedia.mongodb.xml files (@SylvanoTombo)
  • [#1816] Controller reference of some media API routes. (@jorrit)
  • [#1814] Fixed calls to deprecated method AwsClient::factory() when using aws/aws-sdk-php:^3.0; (@phansys)
  • [#1814] Fixed passing required arguments to "sonata.media.cdn.cloudfront" service when using aws/aws-sdk-php:^3.0; (@phansys)
  • [#1814] Fixed respecting sonata_media.filesystem.s3.region, sonata_media.filesystem.s3.version and sonata_media.filesystem.s3.endpoint configuration nodes when using aws/aws-sdk-php:^2.0. (@phansys)

Removed

  • [#1836] Dev dependency on sonata-project/formatter-bundle. (@jorrit)
  • [#1818] Remove support for doctrine/mongodb-odm <2.0 (@franmomu)

3.27.0

02 Sep 20:50
3.27.0
36287cb
Compare
Choose a tag to compare

Added

Fixed

  • [#1800] Fixed support for string model identifiers at Open API definitions (@wbloszyk)

Removed

  • [#1800] Removed requirements that were only allowing integers for model identifiers at Open API definitions (@wbloszyk)

3.26.0

04 Aug 19:08
3.26.0
320a478
Compare
Choose a tag to compare

Added

  • [#1761] Added public alias Sonata\MediaBundle\Controller\Api\GalleryController for sonata.media.controller.api.gallery service (@wbloszyk)
  • [#1761] Added public alias Sonata\MediaBundle\Controller\Api\MediaController for sonata.media.controller.api.media service (@wbloszyk)
  • [#1767] Added support for friendsofsymfony/rest-bundle:^3.0 (@wbloszyk)
  • [#1771] Added french translation for image_too_small error message (@romainjanvier)
  • [#1756] Added twig/string-extra dependency. (@franmomu)
  • [#1757] Add missing MediaManagerInterface to NoDriverManager (@core23)

Change

  • [#1767] Support for deprecated rest routing type in favor for xml (@wbloszyk)

Changed

  • [#1765] Change based command class from ContainerAwareCommand to Command and inject services instead container (@wbloszyk)
  • [#1753] SonataEasyExtendsBundle is now optional, using SonataDoctrineBundle is preferred (@jordisala1991)
  • [#1756] Changed use of truncate filter with u filter. (@franmomu)

Deprecated

Fixed

  • [#1761] Fix RestFul API - Class could not be determined for Controller identified Error (@wbloszyk)

Removed

3.25.0

19 Jun 19:11
3.25.0
55d4a34
Compare
Choose a tag to compare

Added

  • Add image size validation
  • Added support for symfony/mime:^5.0
  • adding maxFileSize as a parameter in the validation message

Changed

  • Changed the validation message for the validation rule

Fixed

  • Fix missing translation of gallery context
  • Removed all calls to container inside the CleanMediaCommand
  • Fix bin/console lint:container command and pass an object of class
    NoDriverManager of the expected GalleryManagerInterface interface

Removed

  • remove SonataCoreBundle dependencies

3.24.0

22 Mar 14:19
3.24.0
398d6b7
Compare
Choose a tag to compare

Fixed

  • BlockBundle deprecations
  • API routes config, made them public for the FOSRest routeloader.

Changed

  • Use Mime Component to guess extension
  • Renamed class Sonata\MediaBundle\Command\DefaultGenerator into Sonata\MediaBundle\Command\IdGenerator
  • Renamed class Sonata\MediaBundle\Command\ODMGenerator into Sonata\MediaBundle\Command\UuidGenerator
  • Renamed class Sonata\MediaBundle\Command\PHPCRGenerator into Sonata\MediaBundle\Command\PathGenerator
  • Made width setting non-mandatory but made width or height setting mandatory on the resizer.

Removed

  • support for Symfony < 4.3

3.23.1

06 Feb 07:03
3.23.1
cf039fb
Compare
Choose a tag to compare

Fixed

  • Generating path when using VO representing UUID
  • Deprecations about commands not returning an exit code

3.23.0

07 Jan 22:38
3.23.0
6172630
Compare
Choose a tag to compare

Added

  • Added support for "knplabs/gaufrette:0.9".

Fixed

  • Fixed passing the default values to the sonata.media.metadata.amazon service.