Skip to content

Latest commit

 

History

History
1068 lines (871 loc) · 63.1 KB

CHANGELOG.md

File metadata and controls

1068 lines (871 loc) · 63.1 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

4.15.0 - 2024-11-14

Added

Changed

  • [#2465] Czech translations updated (key order, incomplete values, missing keys) (@fbuchlak)

4.14.1 - 2024-09-12

Fixed

  • [#2460] Fixed the callback transformers of media/gallery block services. (@lemorragia)

4.14.0 - 2024-08-27

Added

Fixed

4.13.0 - 2024-03-17

Added

4.12.0 - 2024-03-08

Changed

  • [#2444] Throw TransformationFailedException when reverse transformation fails in ProviderDataTransformer. (@jorrit)

4.11.1 - 2024-02-18

Fixed

4.11.0 - 2023-12-15

Added

4.10.5 - 2023-11-21

Changed

  • [#2351] How picture element twig options are merged, making them work same way as srcset (@haivala)

Fixed

4.10.4 - 2023-09-11

Fixed

4.10.3 - 2023-08-01

Fixed

  • [#2411] Deprecation of Event Subscribers on Symfony 6.3. The MediaEventSubscriber now uses Event Listeners (@Hanmac)

4.10.2 - 2023-07-29

Changed

  • [#2402] Resole "Admin has no subject" error from the getMediaBuilder (@Elkawaie)

4.10.1 - 2023-07-22

Fixed

4.10.0 - 2023-06-04

Added

4.9.0 - 2023-05-13

Added

4.8.1 - 2023-04-25

Fixed

  • [#2384] sonata.media.metadata.amazon is removed from the container if the configuration for S3 is not enabled (@jordisala1991)

4.8.0 - 2023-04-24

Removed

4.7.1 - 2023-04-12

Changed

  • [#2364] Italian translations updated (missing keys, keys ordering) (@gremo)

Fixed

4.7.0 - 2023-03-09

Added

Removed

4.6.0 - 2023-02-19

Added

  • [#2358] Added new configuration parameter sonata_media.filesystem.s3.async (@ozahorulia)

4.5.1 - 2022-08-31

Fixed

  • [#2333] Allow CloudFront to compress files passing ContentLength in the headers. (@dmitryuk)

4.5.0 - 2022-08-04

Added

4.4.0 - 2022-06-28

Added

4.3.0 - 2022-06-25

Changed

  • [#2313] MediaType form type will now allow you to pass your own data_class instead of relying on the provided $this->class. (@esserj)

Removed

4.2.0 - 2022-06-12

Changed

Removed

4.1.5 - 2022-04-27

Fixed

4.1.4 - 2022-03-02

Fixed

4.1.3 - 2022-02-28

Fixed

4.1.2 - 2022-02-25

Fixed

  • [#2285] Fixed auto detect extension if the file does not provide it, for example when dealing with temporal filenames. (@jordisala1991)

4.1.1 - 2022-02-13

Fixed

4.1.0 - 2022-02-12

Added

4.0.1 - 2022-02-08

Fixed

4.0.0 - 2022-01-25

Added

Changed

  • [#2227] Argument 1 in order to allow any iterable type at MediaInterface::setGalleryItems() and GalleryInterface::setGalleryItems(). (@phansys)

Fixed

Removed

4.0.0-RC2 - 2021-11-23

Fixed

4.0.0-RC1 - 2021-11-17

Changed

  • [#2204] Make "sonata-project/admin-bundle" dependency optional for blocks (@core23)
  • [#2201] Changed visibility for public methods on Admin classes. (@jordisala1991)

Fixed

4.0.0-alpha1 - 2021-10-21

3.38.1 - 2022-02-24

Added

  • [#2285] Fixed auto detect extension if the file does not provide it, for example when dealing with temporal filenames. (@jordisala1991)

3.38.0 - 2021-02-12

Added

  • [#2271] ImageProviderInterface so ImageProvider can be replaced without extending the class. (@jorrit)

3.37.1 - 2021-12-09

Fixed

  • [#2245] src/Resources/views/MediaAdmin/inner_row_media.html.twig (@cezar77)

3.37.0 - 2021-11-17

Added

Changed

Fixed

Removed

3.36.0 - 2021-11-04

Changed

Deprecated

Removed

  • [#2197] Conflict against "nelmio/api-doc-bundle" >= 4.0 (@phansys)
  • [#2197] The ReST API endpoints and documentation if "nelmio/api-doc-bundle" >= 4.0 is installed (@phansys)

3.35.1 - 2021-10-18

Fixed

3.35.0 - 2021-10-18

Deprecated

Fixed

  • [#2171] Docblock for CategoryManagerInterface::getRootCategory() to tell it can return null (@phansys)
  • [#2169] Call to an undefined method Connection::fetchAll() when using doctrine/dbal:3.x (@phansys)
  • [#2166] Fixed usage of deprecated custom twig tags (@jordisala1991)

Removed

3.34.2 - 2021-10-08

Fixed

  • [#2152] Fixed safe output of sonata_media and sonata_thumbnail functions (@jordisala1991)
  • [#2152] Fixed calling sonata_media and sonata_thumbnail functions with null media (@jordisala1991)

3.34.1 - 2021-10-06

Fixed

3.34.0 - 2021-10-05

Added

Deprecated

Fixed

3.33.1 - 2021-09-10

Fixed

3.33.0 - 2021-09-08

Added

  • [#2096] Missing method declarations in interfaces and abstract classes, through @method annotation in order to respect BC (@phansys)
  • [#2044] Method Sonata\MediaBundle\Filesystem\Replicate::createStream() (@phansys)
  • [#2044] Implemented Gaufrette\Adapter\StreamFactory in Sonata\MediaBundle\Filesystem\Replicate (@phansys)
  • [#2042] Added name for blocks so they can be recognized on SonataPageBundle (@jordisala1991)
  • [#2040] Added ResizableThumbnailInterface (@jordisala1991)
  • [#2036] PHPStan configuration and dependencies backported from master branch (@phansys)

Changed

  • [#2082] Return null from BaseMediaEventSubscriber::getMedia() if the related media does not implement MediaInterface (@phansys)

Deprecated

  • [#2077] Unused argument 3 in Replicate::write() (@phansys)
  • [#2044] Sonata\MediaBundle\Filesystem\Replicate::createFileStream() in favor of createStream() (@phansys)
  • [#2072] Direct injection of SessionInterface on SessionDownloadStrategy, we use RequestStack to avoid deprecations (@jordisala1991)
  • [#2043] Deprecated integration with openStack / rackSpace (@jordisala1991)
  • [#2021] Deprecate getContext() from Pool without first having that context (@jordisala1991)

Fixed

  • [#2082] Return type at BaseMediaEventSubscriber::getProvider() (@phansys)
  • [#2088] Removed placeholder for translations (@jordisala1991)
  • [#2083] Call to undefined function Buzz\Browser::sendRequest() with "kriswallsmith/buzz" <0.16 (@phansys)
  • [#2075] Fix display of choices form types inside blocks (@jordisala1991)
  • [#2044] Missing implementation for Gaufrette\Adapter\FileFactory interface at Sonata\MediaBundle\Filesystem\Replicate (@phansys)
  • [#2044] Call to undefined method Adapter::createFileStream() (@phansys)
  • [#2044] Call to undefined method Adapter::listDirectory() (@phansys)
  • [#2076] Fixed adding new Media with Pixlr enabled (@jordisala1991)

3.32.0 - 2021-06-13

Added

Changed

  • [#1974] Updated docs in order to expose how to configure custom serialization paths under jms_serializer configuration node (jms_serializer.metadata.directories). (@jordisala1991)
  • [#1969] Updated Dutch translations (@VincentLanglet)

Fixed

3.31.2 - 2021-05-18

Fixed

  • [#1955] CDN invalidation from CloudFront when submitting paths that were previously invalidated. (@phansys)
  • [#1956] Arguments passed to sprintf() in flushPaths() methods at CloudFront and CloudFrontVersion3. (@phansys)

3.31.1 - 2021-04-19

Fixed

  • [#1953] Remove superfluous deprecation message when translator class is registered that implements both the legacy and new TranslatorInterface (@jorrit)

3.31.0 - 2021-03-26

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 - 2021-02-15

Added

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

3.29.0 - 2020-11-30

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 - 2020-10-30

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 - 2020-09-02

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 - 2020-08-04

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 - 2020-06-19

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 - 2020-03-15

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 - 2020-02-06

Fixed

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

3.23.0 - 2020-01-07

Added

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

Fixed

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

3.22.0 - 2019-12-15

Added

  • Imagine ^1.0 support

Changed

  • SimpleResizer and SquareResizer resizers now use ImagineCompatibleResizerTrait

Fixed

  • Fixed using old string types to create forms
  • Add the addResizer method call on the thumbnail service only if the method exists.
  • Add missing default service argument for AmazonMetadataBuilder

Removed

  • Support for Symfony < 3.4
  • Support for Symfony >= 4, < 4.2

3.21.0 - 2019-10-21

Added

  • Add missing translation for admin menu

Changed

  • Changed parameter type in MediaInterface::setCdnFlushIdentifier
  • Add breadcrumb as default context for seo blocks
  • the alt tag of media picture elements to the media description, falling back to the name when no description is present
  • Bumped "twig/twig" dependency to "^2.9";
  • Changed usages of {% spaceless %} tag, which is deprecated as of Twig 1.38 with {% apply spaceless %} filter;
  • Changed usages of {% for .. if .. %}, which is deprecated as of Twig 2.10 with filter filter'.

Fixed

  • Using deprecated \Twig_ classes without namespace.
  • Respect "field_description.options.route.name" value at list_image.html.twig instead of using hardcoded "edit".
  • Possibility to resolve Twig dependency to versions that don't support arrow functions on Twig filters.

Deprecated

  • Extending classes marked as final:
  • Sonata\MediaBundle\Admin\GalleryAdmin
  • Sonata\MediaBundle\Admin\GalleryHasMediaAdmin
  • Sonata\MediaBundle\Admin\ODM\MediaAdmin
  • Sonata\MediaBundle\Admin\ORM\MediaAdmin
  • Sonata\MediaBundle\Admin\PHPCR\GalleryAdmin
  • Sonata\MediaBundle\Admin\PHPCR\MediaAdmin
  • Sonata\MediaBundle\Block\Breadcrumb\GalleryIndexBreadcrumbBlockService
  • Sonata\MediaBundle\Block\Breadcrumb\GalleryViewBreadcrumbBlockService
  • Sonata\MediaBundle\Block\Breadcrumb\MediaViewBreadcrumbBlockService
  • Sonata\MediaBundle\Block\FeatureMediaBlockService
  • Sonata\MediaBundle\Block\GalleryBlockService
  • Sonata\MediaBundle\Block\GalleryListBlockService
  • Sonata\MediaBundle\Block\MediaBlockService
  • Sonata\MediaBundle\CDN\CloudFront
  • Sonata\MediaBundle\CDN\Fallback
  • Sonata\MediaBundle\CDN\PantherPortal
  • Sonata\MediaBundle\CDN\Server
  • Sonata\MediaBundle\Command\AddMassMediaCommand
  • Sonata\MediaBundle\Command\AddMediaCommand
  • Sonata\MediaBundle\Command\CleanMediaCommand
  • Sonata\MediaBundle\Command\FixMediaContextCommand
  • Sonata\MediaBundle\Command\MigrateToJsonTypeCommand
  • Sonata\MediaBundle\Command\RefreshMetadataCommand
  • Sonata\MediaBundle\Command\RemoveThumbsCommand
  • Sonata\MediaBundle\Command\SyncThumbsCommand
  • Sonata\MediaBundle\Command\UpdateCdnStatusCommand
  • Sonata\MediaBundle\Consumer\CreateThumbnailConsumer
  • Sonata\MediaBundle\Controller\Api\GalleryController
  • Sonata\MediaBundle\Controller\Api\MediaController
  • Sonata\MediaBundle\Controller\GalleryAdminController
  • Sonata\MediaBundle\Controller\GalleryController
  • Sonata\MediaBundle\Controller\MediaAdminController
  • Sonata\MediaBundle\Controller\MediaController
  • Sonata\MediaBundle\DependencyInjection\Compiler\AddProviderCompilerPass
  • Sonata\MediaBundle\DependencyInjection\Compiler\GlobalVariablesCompilerPass
  • Sonata\MediaBundle\DependencyInjection\Compiler\SecurityContextCompilerPass
  • Sonata\MediaBundle\DependencyInjection\Compiler\ThumbnailCompilerPass
  • Sonata\MediaBundle\DependencyInjection\Configuration
  • Sonata\MediaBundle\DependencyInjection\SonataMediaExtension
  • Sonata\MediaBundle\Document\GalleryManager
  • Sonata\MediaBundle\Document\MediaManager
  • Sonata\MediaBundle\Entity\GalleryManager
  • Sonata\MediaBundle\Entity\MediaManager
  • Sonata\MediaBundle\Extra\ApiMediaFile
  • Sonata\MediaBundle\Extra\Pixlr
  • Sonata\MediaBundle\Filesystem\Local
  • Sonata\MediaBundle\Filesystem\Replicate
  • Sonata\MediaBundle\Form\DataTransformer\ProviderDataTransformer
  • Sonata\MediaBundle\Form\DataTransformer\ServiceProviderDataTransformer
  • Sonata\MediaBundle\Form\Type\ApiDoctrineMediaType
  • Sonata\MediaBundle\Form\Type\ApiGalleryHasMediaType
  • Sonata\MediaBundle\Form\Type\ApiGalleryType
  • Sonata\MediaBundle\Form\Type\ApiMediaType
  • Sonata\MediaBundle\Form\Type\MediaType
  • Sonata\MediaBundle\Generator\DefaultGenerator
  • Sonata\MediaBundle\Generator\ODMGenerator
  • Sonata\MediaBundle\Generator\PHPCRGenerator
  • Sonata\MediaBundle\Listener\ODM\MediaEventSubscriber
  • Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber
  • Sonata\MediaBundle\Listener\PHPCR\MediaEventSubscriber
  • Sonata\MediaBundle\Metadata\AmazonMetadataBuilder
  • Sonata\MediaBundle\Metadata\NoopMetadataBuilder
  • Sonata\MediaBundle\Metadata\ProxyMetadataBuilder
  • Sonata\MediaBundle\PHPCR\BaseGalleryHasMediaRepository
  • Sonata\MediaBundle\PHPCR\BaseGalleryRepository
  • Sonata\MediaBundle\PHPCR\BaseMediaRepository
  • Sonata\MediaBundle\PHPCR\GalleryManager
  • Sonata\MediaBundle\PHPCR\MediaManager
  • Sonata\MediaBundle\Provider\DailyMotionProvider
  • Sonata\MediaBundle\Provider\FileProvider
  • Sonata\MediaBundle\Provider\ImageProvider
  • Sonata\MediaBundle\Provider\Pool
  • Sonata\MediaBundle\Provider\VimeoProvider
  • Sonata\MediaBundle\Provider\YouTubeProvider
  • Sonata\MediaBundle\Resizer\SimpleResizer
  • Sonata\MediaBundle\Resizer\SquareResizer
  • Sonata\MediaBundle\Security\ForbiddenDownloadStrategy
  • Sonata\MediaBundle\Security\PublicDownloadStrategy
  • Sonata\MediaBundle\Security\RolesDownloadStrategy
  • Sonata\MediaBundle\Security\SessionDownloadStrategy
  • Sonata\MediaBundle\Serializer\GallerySerializerHandler
  • Sonata\MediaBundle\Serializer\MediaSerializerHandler
  • Sonata\MediaBundle\SonataMediaBundle
  • Sonata\MediaBundle\Thumbnail\ConsumerThumbnail
  • Sonata\MediaBundle\Thumbnail\FormatThumbnail
  • Sonata\MediaBundle\Thumbnail\LiipImagineThumbnail
  • Sonata\MediaBundle\Twig\Extension\FormatterMediaExtension
  • Sonata\MediaBundle\Twig\Extension\MediaExtension
  • Sonata\MediaBundle\Twig\GlobalVariables
  • Sonata\MediaBundle\Twig\Node\MediaNode
  • Sonata\MediaBundle\Twig\Node\PathNode
  • Sonata\MediaBundle\Twig\Node\ThumbnailNode
  • Sonata\MediaBundle\Twig\TokenParser\MediaTokenParser
  • Sonata\MediaBundle\Twig\TokenParser\PathTokenParser
  • Sonata\MediaBundle\Twig\TokenParser\ThumbnailTokenParser
  • Sonata\MediaBundle\Validator\Constraints\ValidMediaFormat
  • Sonata\MediaBundle\Validator\FormatValidator

3.20.1 - 2019-06-13

Fixed

  • Value of code to throw RuntimeException when url of video throw an exception

Changed

  • Updated _controller attribute for routes which were using deprecated syntax.

3.20.0 - 2019-05-16

Added

  • Added compatibility with jms/serializer-bundle:^3.0
  • In context settings right now you can add the custom array named resizer_options.

Fixed

  • Fix error 500 when max post size is exceeded on multi providers context
  • Fix file too big message not displayed when $media->getBinaryContent()->getClientSize() return null

3.19.1 - 2019-02-23

Fixed

  • return type for CategoryManager::find()
  • Crash about setFormTheme when viewing the gallery list

3.19.0 - 2019-02-21

Added

  • Added configuration option for the media helper to generate a instead of

Changed

  • Sort galleryHasMedias on GalleryAdmin::postUpdate

Fixed

  • SimpleResizer::computeBox() will return the size of the resulting image instead of just the scaled image before the cropping step.
  • Fix configuration defaults: omitted dimensions in format definitions must be null
  • Strict checking of height/width sizes in formats configuration
  • Crash about setFormTheme when viewing the media list
  • TypeError on media upload when validation fails for another field

3.18.1 - 2019-01-21

Fixed

  • crash about wrong provider argument type when trying to upload a media

3.18.0 - 2019-01-18

Added

  • Added alias for providers to use autoconfigure via DependencyInjection
  • Added Sonata\MediaBundle\Provider\Metadata class

Changed

  • Changed MediaProviderInterface::getProviderMetadata return type in PHPDoc
  • block classes will use the block specific Metadata class

Removed

  • Removed CoreBundle deprecations

3.17.1 - 2019-01-12

Fixes

  • crashes on pages with null medias

3.17.0 - 2019-01-10

Added

  • Added an alias for the pool
  • Possiblity to create custom resizers

Changed

  • Allow KnpLabs/Gaufrette 0.8

Removed

  • support for php 5 and php 7.0

Fixed

  • Fix deprecation for symfony/config 4.2+
  • Deprecations about Sonata\CoreBundle\Model\BaseEntityManager

Deprecated

  • Undeprecated MediaManagerInterface

3.16.3 - 2018-11-05

Fixed

  • Added missing methods to FormatterMediaExtension

3.16.2 - 2018-10-17

Fixed

  • Fix dailymotion regex to extract the video reference from the url.

3.16.1 - 2018-10-03

Fixed

  • Prevent incompatible sonata-project/formatter-bundle 4 from being installed

3.16.0 - 2018-09-23

Added

  • S3 Connection without use of credentials (access and secret keys) but with IAM roles (Amazon instances must have been configured with it).

Fixed

  • Fixed S3 credentials set to false when no credentials are provided
  • Bug where an extension config with unresolved parameters was processed in a compiler pass

3.15.0 - 2018-07-06

Added

  • Added getters for allowedExtensions and allowedMimeTypes properties

3.14.0 - 2018-06-27

Changed

  • Make service alias sonata.media.manager.category public
  • Allow Gaufrette 0.6
  • Moved a code block from BaseProvider::postRemove to BaseProvider::preRemove

Fixed

  • Make services public

3.13.1 - 2018-05-25

Changed

  • Force use existing translation strings for Media/Gallery breadcrumbs in Admin panel
  • Deprecations from controllers still using deprecated render instead of renderWithExtraParams()
  • Set providers, metadata and manager services public so applications using SonataMediaBundle can upgrade to Symfony 4.0.

3.13.0 - 2018-05-17

Changed

  • A db_driver configuration parameter is optional now with no_driver default value

Fixed

  • Issue where all medias were removed from a gallery on update.
  • Fixed widget template for MediaType as a child form type
  • sonata:media:sync-thumbnails command when running this command with PHPCR or ODM document mapper.

3.12.0 - 2018-04-09

Changed

  • Changed Vimeo endpoint to https

Fixed

  • LiipImagine generatePublicUrl updated to work with latest version of that bundle
  • Relative path when path it is already an url

Removed

  • Removed compatibility with older versions of FOSRestBundle (<2.1)
  • Removed SonataNotificationBundle as a required dependency

3.11.0 - 2018-02-23

Added

  • added block title translation domain option
  • added block icon option
  • added block class option
  • Added compatibility with Gaufrette ^0.4 and ^0.5
  • Added compatibility with Buzz ^0.16

Fixed

  • Commands not working on symfony4
  • AmazonMetadataBuilder now relies on Psr7 mimeType guesser

Removed

  • Removed default title from blocks
  • Removed old sonata- classes from templates
  • Removed compatibility with Gaufrette ^0.1and ^0.2
  • Removed compatibility with JMS serializer ^0.13

3.10.2 - 2018-02-02

Added

  • Added support for latest imagine version

Changed

  • Make services public

3.10.1 - 2018-01-26

Added

  • Added missing SquareResizer::$metadata property
  • Added Catalan translations

Fixed

  • Selected gallery context is now translated just like in the dropdown.
  • Replaced getMockBuilder with createMock where it was possible
  • Fixed phpdoc

3.10.0 - 2017-11-30

Added

  • Added automatically adding src format to srcset

Fixed

  • Return size after resize in cropping flow, not just the cropped dimensions
  • FOSRest-related deprecations
  • It is now allowed to install Symfony 4

3.9.0 - 2017-11-23

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 - 2017-10-22

Removed

  • Support for old versions of php and Symfony.

3.7.0 - 2017-10-22

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 - 2017-08-01

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 - 2017-03-31

Changed

  • allow knplabs/gaufrette v0.3.0

Fixed

  • Replace missing providers column by providerName on clean command

3.5.0 - 2017-03-08

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 - 2017-02-28

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 - 2017-02-02

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 - 2016-09-08

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 - 2016-08-18

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.

3.1.0 - 2016-07-22

Added

  • Added Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber::onClear to clear the rootCategories cache when the EntityManager is cleared
  • Added region key to S3Client config
  • Added alt attribute to thumbnail twig tag

Changed

  • Injection of Session instead of the whole Container in Security/SessionDownloadStrategy
  • Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber::onClear now subscribes to onClear too

Deprecated

  • $container property in Security/SessionDownloadStrategy
  • Deprecated Pool::$downloadSecurities for Pool::$downloadStrategies property
  • Deprecated Pool::addDownloadSecurity for Pool::addDownloadStrategy method
  • Deprecated Pool::getDownloadSecurity for Pool::getDownloadStrategy method

Fixed

  • Restored ApiDoc and QueryParam use statements in Api/GalleryController
  • Added missing sonata-project/block-bundle dependency
  • Fixed media widget spanish translations
  • Support for FOSRestBundle 2.0
  • Fixed ApiMediaType::getParent compatibility with Symfony3 forms
  • Fixed MediaType::buildForm compatibility with Symfony3 forms
  • Fixed MediaType::getParent compatibility with Symfony3 forms
  • Fixed BaseVideoProvider::buildEditForm compatibility with Symfony3 forms
  • Fixed BaseVideoProvider::buildCreateForm compatibility with Symfony3 forms
  • Fixed BaseVideoProvider:: buildMediaType compatibility with Symfony3 forms
  • Fixed FileProvider::buildEditForm compatibility with Symfony3 forms
  • Fixed FileProvider::buildCreateForm compatibility with Symfony3 forms
  • Fixed FileProvider::buildMediaType compatibility with Symfony3 forms
  • Fixed mixed-content error when loading Pixlr editor under https
  • Gaufrette compatibility with Symfony 3
  • Fix deprecated usage of Admin class
  • Added missing BaseProvider::$name property
  • Removed double translation in gallery edit form
  • Reuse of root categories instances after the entity manager has been cleared

Removed

  • Internal test classes are now excluded from the autoloader