sonata-project/media-bundle
Symfony SonataMediaBundle
4.20.0
5.7M downloads/mo
#3981 most downloaded on Packagist
sonata-project/SonataMediaBundle
What this package is like to depend on
Last release 8 months ago
19 Dec 2025
Release timing varies
gaps range from 8 days to 7 months
Most releases are documented
notes for 96 of 114 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
117 releases · first in 2012
4 releases in the last 12 months
see the full history below
Release timeline
117 releases · Dec 2012 to Dec 2025
2013
2015
2017
2019
2021
2023
2025
Releases
latest 60 of 117-
4.20.019 Dec 2025 -
4.19.018 Oct 2025 -
4.18.023 Sep 2025 -
4.17.015 Sep 2025Release notes
Open source →Release notes
Open source → -
4.16.024 Feb 2025 -
4.15.014 Nov 2024 -
4.14.112 Sep 2024Release notes
Open source →Fixed
- [#2460] Fixed the callback transformers of media/gallery block services. (@lemorragia)
Release notes
Open source →Fixed
- [#2460] Fixed the callback transformers of media/gallery block services. (@lemorragia)
-
4.14.027 Aug 2024Release notes
Open source →Added
- [#2461] Support for psr/http-message 2 (@VincentLanglet)
Fixed
- [#2455] Symfony 7.1 deprecation about
Symfony\Component\HttpKernel\DependencyInjection\Extensionusage (@VincentLanglet) - [#2452] Remove format restriction on
FileThumbnailservice (@VincentLanglet)
Release notes
Open source →Added
- [#2461] Support for psr/http-message 2 (@VincentLanglet)
Fixed
- [#2455] Symfony 7.1 deprecation about
Symfony\Component\HttpKernel\DependencyInjection\Extensionusage (@VincentLanglet) - [#2452] Remove format restriction on
FileThumbnailservice (@VincentLanglet)
-
4.13.017 Mar 2024 -
4.12.008 Mar 2024 -
4.11.118 Feb 2024Release notes
Open source →Fixed
- [#2442] Resolve "Admin has no subject" error from the getMediaBuilder (@VincentLanglet)
- [#2442] Resolve "Admin has no subject" error from the getGalleryBuilder (@VincentLanglet)
-
4.11.015 Dec 2023 -
4.10.521 Nov 2023Release notes
Open source →Changed
Fixed
- [#2420] Fix doctrine mapping for media length (@core23)
- [#2423] Usage of deprecated
renderWithExtraParamsmethod (@VincentLanglet)
-
4.10.411 Sep 2023 -
4.10.301 Aug 2023 -
4.10.228 Jul 2023Release notes
Open source → -
4.10.122 Jul 2023Release notes
Open source →Fixed
- [#2405] *
round()can return 0 which is invalid for image resizing. (@silasjoisten)
- [#2405] *
-
4.10.004 Jun 2023 -
4.9.013 May 2023Release notes
Open source →Added
- [#2393] Support for
sonata-project/form-extensions2.0 (@jordisala1991)
- [#2393] Support for
-
4.8.125 Apr 2023Release notes
Open source →Fixed
- [#2384]
sonata.media.metadata.amazonis removed from the container if the configuration for S3 is not enabled (@jordisala1991)
- [#2384]
-
4.8.025 Apr 2023Release notes
Open source →Removed
- [#2382] Support for Symfony 4.4 (@jordisala1991)
- [#2382] Support for Twig 2 (@jordisala1991)
-
4.7.112 Apr 2023Release notes
Open source →Changed
Fixed
- [#2363]
gallery_itemtranslation key (english) (@gremo) - [#2379] ORM schema mapping does not give errors about validation root (@jordisala1991)
- [#2374] Deprecation for boolean field on MongoDB ODM (@jordisala1991)
- [#2363]
-
4.7.009 Mar 2023Release notes
Open source →Added
- [#2360] Added support for
knplabs/gaufrette^0.11. (@jordisala1991)
Removed
- [#2360] Drop support for
doctrine/persistence^2.0. (@jordisala1991) - [#2361] Support for PHP 7.4
- [#2361] Support for Symfony 6.0 and 6.1
- [#2360] Added support for
-
4.6.019 Feb 2023Release notes
Open source →Added
- [#2358] Added new configuration parameter
sonata_media.filesystem.s3.async(@ozahorulia)
- [#2358] Added new configuration parameter
-
4.5.131 Aug 2022Release notes
Open source → -
4.5.004 Aug 2022Release notes
Open source →Added
- [#2326] Support for sonata-project/doctrine-extensions ^2 (@VincentLanglet)
- [#2326] Support for sonata-project/twig-extensions ^2 (@VincentLanglet)
-
4.4.028 Jun 2022Release notes
Open source →Added
- [#2317] Add support for
doctrine/persistence^3.0. (@jordisala1991)
- [#2317] Add support for
-
4.3.025 Jun 2022Release notes
Open source →Changed
- [#2313]
MediaTypeform type will now allow you to pass your owndata_classinstead of relying on the provided$this->class. (@esserj)
Removed
- [#2314] Avoid deprecations for console commands on Symfony 6.1. (@jordisala1991)
- [#2313]
-
4.2.012 Jun 2022 -
4.1.527 Apr 2022Release notes
Open source →Fixed
- [#2299] Check for allowed extensions and mimetypes are case insensitive. (@VincentLanglet)
-
4.1.403 Mar 2022 -
4.1.328 Feb 2022Release notes
Open source →Fixed
- [#2289] Deprecations introduces by SonataAdminBundle 4.9.0 (@VincentLanglet)
-
4.1.225 Feb 2022Release notes
Open source →Fixed
- [#2285] Fixed auto detect extension if the file does not provide it, for example when dealing with temporal filenames. (@jordisala1991)
-
4.1.113 Feb 2022 -
4.1.012 Feb 2022Release notes
Open source →Added
- [#2275] Added support for
psr/log^3.0 (@jordisala1991) - [#2275] Added support for
symfony/translation-contracts^3.0. (@jordisala1991)
- [#2275] Added support for
-
4.0.108 Feb 2022Release notes
Open source →Fixed
- [#2273] Fixed admin media translations (@jordisala1991)
- [#2273] Fixed admin gallery translations (@jordisala1991)
-
4.0.024 Jan 2022Release notes
Open source →Added
- [#2222] Added support for Symfony 6. (@jordisala1991)
Changed
- [#2227] Argument 1 in order to allow any iterable type at
MediaInterface::setGalleryItems()andGalleryInterface::setGalleryItems(). (@phansys)
Fixed
- [#2267] Fixed usage of this bundle with PostgreSQL. (@jordisala1991)
- [#2266] Fixed placeholder for files on media list. (@jordisala1991)
- [#2264] Loading Media / Gallery object from the database. (@jordisala1991)
- [#2225] Fixed
CRUDControllerregistration for GalleryItemAdmin. (@jordisala1991) - [#2225] Fixed default values for models to match the explanations on the documentation. (@jordisala1991)
Removed
- [#2264] Final modifier on all the getters / setters of the entities. (@jordisala1991)
-
4.0.0-alpha121 Oct 2021 pre-releaseNothing published for this version
-
4.0.0-RC223 Nov 2021 pre-release -
4.0.0-RC117 Nov 2021 pre-releaseRelease notes
Open source →Changed
- [#2204] Make "sonata-project/admin-bundle" dependency optional for blocks (@core23)
- [#2201] Changed visibility for public methods on Admin classes. (@jordisala1991)
Fixed
-
3.38.124 Feb 2022Release notes
Open source →Added
- [#2285] Fixed auto detect extension if the file does not provide it, for example when dealing with temporal filenames. (@jordisala1991)
-
3.38.012 Feb 2022 -
3.37.109 Dec 2021Release notes
Open source → -
3.37.017 Nov 2021Release notes
Open source →Added
- [#2164] Added property type hints (@jordisala1991)
Changed
- [#2157]
cdnIsFlushableproperty on Media entity is non nullable now. (@jordisala1991) - [#2137] Changed
FeatureMediaBlockServiceto not extendMediaBlockService. (@jordisala1991) - [#2137] Changed
MediaBlockServiceto be final. (@jordisala1991) - [#2125] Block templates are suposed to be overriden by the application to add its specific design. (@jordisala1991)
Fixed
- [#2156] Missing CDN part when generating public URL for FileProvider with reference format (@nicolas-anaxago)
- [#2150] Fixed load controllers only when SonataAdminBundle is enabled. (@jordisala1991)
Removed
- [#2164] Removed support for PHP 7.3 (@jordisala1991)
-
3.36.004 Nov 2021Release notes
Open source →Changed
- [#2194] Final annotation to methods that will be final on 4.x (@jordisala1991)
Deprecated
- [#2187] PantherPortal CDN (@jordisala1991)
- [#2186] Using
masterandslavefor filesystem and cdn configuration, useprimaryandsecondaryinstead (@jordisala1991)
Removed
-
3.35.118 Oct 2021Release notes
Open source →Fixed
- [#2175] Fixed calling
media_thumbnailinstead ofsonata_thumbnail(@jordisala1991)
- [#2175] Fixed calling
-
3.35.018 Oct 2021Release notes
Open source →Deprecated
- [#2158] Deprecated passing null value for the media parameter to twig functions (@jordisala1991)
- [#2159] Deprecated
MigrateToJsonTypeCommand(@jordisala1991) - [#2159] Deprecated
ServiceProviderDataTransformer(@jordisala1991)
Fixed
- [#2171] Docblock for
CategoryManagerInterface::getRootCategory()to tell it can returnnull(@phansys) - [#2169] Call to an undefined method
Connection::fetchAll()when usingdoctrine/dbal:3.x(@phansys) - [#2166] Fixed usage of deprecated custom twig tags (@jordisala1991)
Removed
-
3.34.208 Oct 2021Release notes
Open source →Fixed
- [#2152] Fixed safe output of
sonata_mediaandsonata_thumbnailfunctions (@jordisala1991) - [#2152] Fixed calling
sonata_mediaandsonata_thumbnailfunctions with null media (@jordisala1991)
- [#2152] Fixed safe output of
-
3.34.106 Oct 2021 -
3.34.005 Oct 2021Release notes
Open source →Added
- [#2145] Added twig functions to load medias, thumbnails or paths (@jordisala1991)
- [#2138] Added new Action to download medias (@jordisala1991)
- [#2131] Added optional integration with Symfony messenger to handle async thumbnail generation (@jordisala1991)
Deprecated
- [#2145] Deprecated using twig tags to load media, thumbnails or paths (@jordisala1991)
- [#2138] Deprecated download medias through
MediaControllerdownloadAction. (@jordisala1991) - [#2139] Deprecated SonataNotificationBundle integration. Use Symfony Messenger integration instead. (@jordisala1991)
- [#2118] Deprecated ReST API with FOSRest, Nelmio Api Docs and JMS Serializer. (@jordisala1991)
- [#2113] Deprecated Pixlr integration. (@jordisala1991)
- [#2105] Deprecate controller actions for showing media and galleries. (@jordisala1991)
- [#2105] Deprecate breadcrumb classes. (@jordisala1991)
Fixed
- [#2116] Fixed deprecation when downloading media through
downloadAction()(@jordisala1991)
-
3.33.110 Sep 2021Release notes
Open source →Fixed
- [#2101] Fixed missing upload after submit of MediaType field (@jordisala1991)
-
3.33.008 Sep 2021Release notes
Open source →Added
- [#2096] Missing method declarations in interfaces and abstract classes, through
@methodannotation in order to respect BC (@phansys) - [#2044] Method
Sonata\MediaBundle\Filesystem\Replicate::createStream()(@phansys) - [#2044] Implemented
Gaufrette\Adapter\StreamFactoryinSonata\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
masterbranch (@phansys)
Changed
- [#2082] Return
nullfromBaseMediaEventSubscriber::getMedia()if the related media does not implementMediaInterface(@phansys)
Deprecated
- [#2077] Unused argument 3 in
Replicate::write()(@phansys) - [#2044]
Sonata\MediaBundle\Filesystem\Replicate::createFileStream()in favor ofcreateStream()(@phansys) - [#2072] Direct injection of
SessionInterfaceonSessionDownloadStrategy, we useRequestStackto 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\FileFactoryinterface atSonata\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)
- [#2096] Missing method declarations in interfaces and abstract classes, through
-
3.32.013 Jun 2021Release notes
Open source →Added
- [#1974] Addded support for
nelmio/api-doc-bundle>= 3.9 (@jordisala1991)
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
- [#1871]
MediaManagerimplementsMediaManagerInterface(@mrcmorales)
- [#1974] Addded support for
-
3.31.219 May 2021 -
3.31.119 Apr 2021 -
3.31.026 Mar 2021Release notes
Open source →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::$masterandReplicate::$slave, in favor ofReplicate::$primaryandReplicate::$secondary(@dps910)
Removed
- [#1923] Added support for
-
3.30.015 Feb 2021 -
3.29.030 Nov 2020 -
3.28.030 Oct 2020Release notes
Open source →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-clientinBaseVideoProvider(@core23)
Changed
- [#1848]
gallerytranslation key intoGallery(@gremo) - [#1821] When
using Doctrine ORM or MongoDB the service
sonata.media.admin.media.manageris now an alias ofsonata.admin.manager.ormorsonata.admin.manager.doctrine_mongodbinstead of a separate service implemented by the same class. (@jorrit)
Deprecated
- [#1815]
Deprecated method signature for
CloudFront::__construct(); (@phansys) - [#1815]
Deprecated methods
CloudFront::setClient()andCloudFront::getStatusList(); (@phansys) - [#1815]
Deprecated returning
falseor any value not present in theCDNInterface::STATUS_*constants fromCloudFront::getFlushStatus(). (@phansys) - [#1841]
sonata.media.adapter.filesystem.mogilefsandsonata.media.filesystem.mogilefsservices; (@phansys) - [#1841]
sonata_media.filesystem.mogilefsconfiguration node. (@phansys) - [#1664]
Deprecate
GuzzleandBuzzusage inBaseVideoProvider(@core23) - [#1814]
Deprecated
sonata_media.filesystem.s3.sdk_versionconfiguration node. (@phansys)
Fixed
- [#1815]
Fixed getting values returned by
CloudFrontClient::createInvalidation()andCloudFrontClient::getInvalidation()methods when using "aws/aws-sdk-php:^3.0". (@phansys) - [#1823]
Fixed marking the medium as not CDN synced (
Media::$cdnIsFlushable) inBaseProvider::flushCdn()andUpdateCdnStatusCommand. (@phansys) - [#1847]
Error on YouTube media creation in
ImageUploadDimensionValidator(@tambait) - [#1832]
Fixed validity of
*.orm.xmlmapping files. (@jorrit) - [#1821]
Deprecation notice in
Sonata\DoctrineORMAdminBundle\Model\ModelManagerandSonata\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.versionandsonata_media.filesystem.s3.endpointconfiguration nodes when using aws/aws-sdk-php:^2.0. (@phansys)
Removed
- [#1823]
Added CDN flush status check at
-
3.27.002 Sep 2020Release notes
Open source →Added
- [#1786] Added support for symfony/filesystem:^5.1 (@phansys)
- [#1786] Added support for symfony/options-resolver:^5.1 (@phansys)
- [#1774] Added configuration option filesystem.s3.endpoint (@michalpicpauer)
Fixed
Removed