All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
4.15.0 - 2024-11-14
4.14.1 - 2024-09-12
- [#2460] Fixed the callback transformers of media/gallery block services. (@lemorragia)
4.14.0 - 2024-08-27
- [#2461] Support for psr/http-message 2 (@VincentLanglet)
- [#2455] Symfony 7.1 deprecation about
Symfony\Component\HttpKernel\DependencyInjection\Extension
usage (@VincentLanglet) - [#2452] Remove format restriction on
FileThumbnail
service (@VincentLanglet)
4.13.0 - 2024-03-17
4.12.0 - 2024-03-08
- [#2444] Throw TransformationFailedException when reverse transformation fails in ProviderDataTransformer. (@jorrit)
4.11.1 - 2024-02-18
- [#2442] Resolve "Admin has no subject" error from the getMediaBuilder (@VincentLanglet)
- [#2442] Resolve "Admin has no subject" error from the getGalleryBuilder (@VincentLanglet)
4.11.0 - 2023-12-15
4.10.5 - 2023-11-21
- [#2420] Fix doctrine mapping for media length (@core23)
- [#2423] Usage of deprecated
renderWithExtraParams
method (@VincentLanglet)
4.10.4 - 2023-09-11
- [#2414] Improve French translation (@antoinemineau)
4.10.3 - 2023-08-01
- [#2411] Deprecation of Event Subscribers on Symfony 6.3. The MediaEventSubscriber now uses Event Listeners (@Hanmac)
4.10.2 - 2023-07-29
4.10.1 - 2023-07-22
- [#2405] *
round()
can return 0 which is invalid for image resizing. (@silasjoisten)
4.10.0 - 2023-06-04
- [#2396] Support for SonataBlockBundle 5.0 (@jordisala1991)
4.9.0 - 2023-05-13
- [#2393] Support for
sonata-project/form-extensions
2.0 (@jordisala1991)
4.8.1 - 2023-04-25
- [#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
- [#2382] Support for Symfony 4.4 (@jordisala1991)
- [#2382] Support for Twig 2 (@jordisala1991)
4.7.1 - 2023-04-12
- [#2363]
gallery_item
translation key (english) (@gremo) - [#2379] ORM schema mapping does not give errors about validation root (@jordisala1991)
- [#2374] Deprecation for boolean field on MongoDB ODM (@jordisala1991)
4.7.0 - 2023-03-09
- [#2360] Added support for
knplabs/gaufrette
^0.11. (@jordisala1991)
- [#2360] Drop support for
doctrine/persistence
^2.0. (@jordisala1991) - [#2361] Support for PHP 7.4
- [#2361] Support for Symfony 6.0 and 6.1
4.6.0 - 2023-02-19
- [#2358] Added new configuration parameter
sonata_media.filesystem.s3.async
(@ozahorulia)
4.5.1 - 2022-08-31
4.5.0 - 2022-08-04
- [#2326] Support for sonata-project/doctrine-extensions ^2 (@VincentLanglet)
- [#2326] Support for sonata-project/twig-extensions ^2 (@VincentLanglet)
4.4.0 - 2022-06-28
- [#2317] Add support for
doctrine/persistence
^3.0. (@jordisala1991)
4.3.0 - 2022-06-25
- [#2313]
MediaType
form type will now allow you to pass your owndata_class
instead of relying on the provided$this->class
. (@esserj)
- [#2314] Avoid deprecations for console commands on Symfony 6.1. (@jordisala1991)
4.2.0 - 2022-06-12
- [#2310] Bump
imagine/imagine
to ^1.3. (@jordisala1991)
4.1.5 - 2022-04-27
- [#2299] Check for allowed extensions and mimetypes are case insensitive. (@VincentLanglet)
4.1.4 - 2022-03-02
- [#2291] Translate providerName filter choices (@jordisala1991)
4.1.3 - 2022-02-28
- [#2289] Deprecations introduces by SonataAdminBundle 4.9.0 (@VincentLanglet)
4.1.2 - 2022-02-25
- [#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
4.1.0 - 2022-02-12
- [#2275] Added support for
psr/log
^3.0 (@jordisala1991) - [#2275] Added support for
symfony/translation-contracts
^3.0. (@jordisala1991)
4.0.1 - 2022-02-08
- [#2273] Fixed admin media translations (@jordisala1991)
- [#2273] Fixed admin gallery translations (@jordisala1991)
4.0.0 - 2022-01-25
- [#2222] Added support for Symfony 6. (@jordisala1991)
- [#2227] Argument 1 in order to allow any iterable type at
MediaInterface::setGalleryItems()
andGalleryInterface::setGalleryItems()
. (@phansys)
- [#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
CRUDController
registration for GalleryItemAdmin. (@jordisala1991) - [#2225] Fixed default values for models to match the explanations on the documentation. (@jordisala1991)
- [#2264] Final modifier on all the getters / setters of the entities. (@jordisala1991)
4.0.0-RC2 - 2021-11-23
4.0.0-RC1 - 2021-11-17
- [#2204] Make "sonata-project/admin-bundle" dependency optional for blocks (@core23)
- [#2201] Changed visibility for public methods on Admin classes. (@jordisala1991)
4.0.0-alpha1 - 2021-10-21
3.38.1 - 2022-02-24
- [#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
- [#2271]
ImageProviderInterface
soImageProvider
can be replaced without extending the class. (@jorrit)
3.37.1 - 2021-12-09
3.37.0 - 2021-11-17
- [#2164] Added property type hints (@jordisala1991)
- [#2157]
cdnIsFlushable
property on Media entity is non nullable now. (@jordisala1991) - [#2137] Changed
FeatureMediaBlockService
to not extendMediaBlockService
. (@jordisala1991) - [#2137] Changed
MediaBlockService
to be final. (@jordisala1991) - [#2125] Block templates are suposed to be overriden by the application to add its specific design. (@jordisala1991)
- [#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)
- [#2164] Removed support for PHP 7.3 (@jordisala1991)
3.36.0 - 2021-11-04
- [#2194] Final annotation to methods that will be final on 4.x (@jordisala1991)
- [#2187] PantherPortal CDN (@jordisala1991)
- [#2186] Using
master
andslave
for filesystem and cdn configuration, useprimary
andsecondary
instead (@jordisala1991)
- [#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
- [#2175] Fixed calling
media_thumbnail
instead ofsonata_thumbnail
(@jordisala1991)
3.35.0 - 2021-10-18
- [#2158] Deprecated passing null value for the media parameter to twig functions (@jordisala1991)
- [#2159] Deprecated
MigrateToJsonTypeCommand
(@jordisala1991) - [#2159] Deprecated
ServiceProviderDataTransformer
(@jordisala1991)
- [#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)
3.34.2 - 2021-10-08
- [#2152] Fixed safe output of
sonata_media
andsonata_thumbnail
functions (@jordisala1991) - [#2152] Fixed calling
sonata_media
andsonata_thumbnail
functions with null media (@jordisala1991)
3.34.1 - 2021-10-06
- [#2149] Fixed MediaRuntime definition (@jordisala1991)
3.34.0 - 2021-10-05
- [#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)
- [#2145] Deprecated using twig tags to load media, thumbnails or paths (@jordisala1991)
- [#2138] Deprecated download medias through
MediaController
downloadAction. (@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)
- [#2116] Fixed deprecation when downloading media through
downloadAction()
(@jordisala1991)
3.33.1 - 2021-09-10
- [#2101] Fixed missing upload after submit of MediaType field (@jordisala1991)
3.33.0 - 2021-09-08
- [#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
inSonata\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)
- [#2082] Return
null
fromBaseMediaEventSubscriber::getMedia()
if the related media does not implementMediaInterface
(@phansys)
- [#2077] Unused argument 3 in
Replicate::write()
(@phansys) - [#2044]
Sonata\MediaBundle\Filesystem\Replicate::createFileStream()
in favor ofcreateStream()
(@phansys) - [#2072] Direct injection of
SessionInterface
onSessionDownloadStrategy
, we useRequestStack
to avoid deprecations (@jordisala1991) - [#2043] Deprecated integration with openStack / rackSpace (@jordisala1991)
- [#2021] Deprecate
getContext()
from Pool without first having that context (@jordisala1991)
- [#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 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)
3.32.0 - 2021-06-13
- [#1974] Addded support for
nelmio/api-doc-bundle
>= 3.9 (@jordisala1991)
- [#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)
- [#1871]
MediaManager
implementsMediaManagerInterface
(@mrcmorales)
3.31.2 - 2021-05-18
- [#1955] CDN invalidation from CloudFront when submitting paths that were previously invalidated. (@phansys)
- [#1956] Arguments passed to
sprintf()
influshPaths()
methods atCloudFront
andCloudFrontVersion3
. (@phansys)
3.31.1 - 2021-04-19
- [#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
- [#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)
- [#1778]
Replicate::$master
andReplicate::$slave
, in favor ofReplicate::$primary
andReplicate::$secondary
(@dps910)
3.30.0 - 2021-02-15
3.29.0 - 2020-11-30
- [#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
- [#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
inBaseVideoProvider
(@core23)
- [#1848]
gallery
translation key intoGallery
(@gremo) - [#1821] When
using Doctrine ORM or MongoDB the service
sonata.media.admin.media.manager
is now an alias ofsonata.admin.manager.orm
orsonata.admin.manager.doctrine_mongodb
instead of a separate service implemented by the same class. (@jorrit)
- [#1815]
Deprecated method signature for
CloudFront::__construct()
; (@phansys) - [#1815]
Deprecated methods
CloudFront::setClient()
andCloudFront::getStatusList()
; (@phansys) - [#1815]
Deprecated returning
false
or any value not present in theCDNInterface::STATUS_*
constants fromCloudFront::getFlushStatus()
. (@phansys) - [#1841]
sonata.media.adapter.filesystem.mogilefs
andsonata.media.filesystem.mogilefs
services; (@phansys) - [#1841]
sonata_media.filesystem.mogilefs
configuration node. (@phansys) - [#1664]
Deprecate
Guzzle
andBuzz
usage inBaseVideoProvider
(@core23) - [#1814]
Deprecated
sonata_media.filesystem.s3.sdk_version
configuration node. (@phansys)
- [#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.xml
mapping files. (@jorrit) - [#1821]
Deprecation notice in
Sonata\DoctrineORMAdminBundle\Model\ModelManager
andSonata\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
andsonata_media.filesystem.s3.endpoint
configuration nodes when using aws/aws-sdk-php:^2.0. (@phansys)
- [#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
- [#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)
- [#1800] Removed requirements that were only allowing integers for model identifiers at Open API definitions (@wbloszyk)
3.26.0 - 2020-08-04
- [#1761]
Added public alias
Sonata\MediaBundle\Controller\Api\GalleryController
forsonata.media.controller.api.gallery
service (@wbloszyk) - [#1761]
Added public alias
Sonata\MediaBundle\Controller\Api\MediaController
forsonata.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
toNoDriverManager
(@core23)
- [#1765]
Change based command class from
ContainerAwareCommand
toCommand
and inject services instead container (@wbloszyk) - [#1753] SonataEasyExtendsBundle is now optional, using SonataDoctrineBundle is preferred (@jordisala1991)
- [#1756]
Changed use of
truncate
filter withu
filter. (@franmomu)
- [#1753] Using SonataEasyExtendsBundle to add Doctrine mapping information (@jordisala1991)
3.25.0 - 2020-06-19
- Add image size validation
- Added support for
symfony/mime:^5.0
- adding
maxFileSize
as a parameter in the validation message
- Changed the validation message for the validation rule
- 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 classNoDriverManager
of the expectedGalleryManagerInterface
interface
- remove SonataCoreBundle dependencies
3.24.0 - 2020-03-15
- BlockBundle deprecations
- API routes config, made them public for the FOSRest routeloader.
- Use Mime Component to guess extension
- Renamed class
Sonata\MediaBundle\Command\DefaultGenerator
intoSonata\MediaBundle\Command\IdGenerator
- Renamed class
Sonata\MediaBundle\Command\ODMGenerator
intoSonata\MediaBundle\Command\UuidGenerator
- Renamed class
Sonata\MediaBundle\Command\PHPCRGenerator
intoSonata\MediaBundle\Command\PathGenerator
- Made width setting non-mandatory but made width or height setting mandatory on the resizer.
- support for Symfony < 4.3
3.23.1 - 2020-02-06
- Generating path when using VO representing UUID
- Deprecations about commands not returning an exit code
3.23.0 - 2020-01-07
- Added support for "knplabs/gaufrette:0.9".
- Fixed passing the default values to the
sonata.media.metadata.amazon
service.
3.22.0 - 2019-12-15
- Imagine
^1.0
support
SimpleResizer
andSquareResizer
resizers now useImagineCompatibleResizerTrait
- 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
- Support for Symfony < 3.4
- Support for Symfony >= 4, < 4.2
3.21.0 - 2019-10-21
- Add missing translation for admin menu
- 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 withfilter
filter'.
- 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.
- 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
- Value of code to throw RuntimeException when url of video throw an exception
- Updated
_controller
attribute for routes which were using deprecated syntax.
3.20.0 - 2019-05-16
- Added compatibility with
jms/serializer-bundle:^3.0
- In context settings right now you can add the custom array named
resizer_options
.
- Fix error 500 when max post size is exceeded on multi providers context
- Fix file too big message not displayed when
$media->getBinaryContent()->getClientSize()
returnnull
3.19.1 - 2019-02-23
- return type for
CategoryManager::find()
- Crash about
setFormTheme
when viewing the gallery list
3.19.0 - 2019-02-21
- Added configuration option for the media helper to generate a
- Sort galleryHasMedias on GalleryAdmin::postUpdate
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
- crash about wrong provider argument type when trying to upload a media
3.18.0 - 2019-01-18
- Added alias for providers to use autoconfigure via DependencyInjection
- Added
Sonata\MediaBundle\Provider\Metadata
class
- Changed
MediaProviderInterface::getProviderMetadata
return type in PHPDoc - block classes will use the block specific Metadata class
- Removed CoreBundle deprecations
3.17.1 - 2019-01-12
- crashes on pages with null medias
3.17.0 - 2019-01-10
- Added an alias for the pool
- Possiblity to create custom resizers
- Allow KnpLabs/Gaufrette 0.8
- support for php 5 and php 7.0
- Fix deprecation for symfony/config 4.2+
- Deprecations about
Sonata\CoreBundle\Model\BaseEntityManager
- Undeprecated
MediaManagerInterface
3.16.3 - 2018-11-05
- Added missing methods to
FormatterMediaExtension
3.16.2 - 2018-10-17
- Fix dailymotion regex to extract the video reference from the url.
3.16.1 - 2018-10-03
- Prevent incompatible
sonata-project/formatter-bundle
4 from being installed
3.16.0 - 2018-09-23
- S3 Connection without use of credentials (access and secret keys) but with IAM roles (Amazon instances must have been configured with it).
- 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 getters for
allowedExtensions
andallowedMimeTypes
properties
3.14.0 - 2018-06-27
- Make service alias
sonata.media.manager.category
public - Allow Gaufrette 0.6
- Moved a code block from BaseProvider::postRemove to BaseProvider::preRemove
- Make services public
3.13.1 - 2018-05-25
- Force use existing translation strings for Media/Gallery breadcrumbs in Admin panel
- Deprecations from controllers still using deprecated
render
instead ofrenderWithExtraParams()
- Set providers, metadata and manager services public so applications using SonataMediaBundle can upgrade to Symfony 4.0.
3.13.0 - 2018-05-17
- A
db_driver
configuration parameter is optional now withno_driver
default value
- 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 Vimeo endpoint to https
- LiipImagine generatePublicUrl updated to work with latest version of that bundle
- Relative path when path it is already an url
- Removed compatibility with older versions of FOSRestBundle (<2.1)
- Removed
SonataNotificationBundle
as a required dependency
3.11.0 - 2018-02-23
- 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
- Commands not working on symfony4
AmazonMetadataBuilder
now relies on Psr7 mimeType guesser
- Removed default title from blocks
- Removed old
sonata-
classes from templates - Removed compatibility with Gaufrette
^0.1
and^0.2
- Removed compatibility with JMS serializer
^0.13
3.10.2 - 2018-02-02
- Added support for latest imagine version
- Make services public
3.10.1 - 2018-01-26
- Added missing SquareResizer::$metadata property
- Added Catalan translations
- Selected gallery context is now translated just like in the dropdown.
- Replaced
getMockBuilder
withcreateMock
where it was possible - Fixed phpdoc
3.10.0 - 2017-11-30
- Added automatically adding src format to srcset
- 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 option to set the img
srcset
tag by giving it an array of format names.
- Rollback to PHP 5.6 as minimum support.
- 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
- Support for old versions of php and Symfony.
3.7.0 - 2017-10-22
- Added
'onDelete' => 'CASCADE'
for mapping from GalleryHasMedia to Media and Gallery
- Use SonataAdminBundle configuration to configure bundle services
- 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
- The Image Provider returns responsive images to the twig media helper.
- Allowed
jms/serializer-bundle ^2.0
- 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
- allow
knplabs/gaufrette v0.3.0
- Replace missing
providers
column byproviderName
on clean command
3.5.0 - 2017-03-08
- 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 an ugly hack to retrieve configuration on
AddProviderCompilerPass
3.4.0 - 2017-02-28
- An icon to admin menu (fa-image)
- Added
getRequest
method on controller for BC with Symfony 2.3+ - Added test on
MediaAdminController
- Replaced form types for the FQCN's
- Support for Twig 2.0
- Callback contraint is not a valid callable on Symfony 3
BaseAdmin
incorrectly retrievedproviderName
- 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
cascade_validation
fromGalleryAdmin
- ClassificationBundle is now an optional dependency
3.3.1 - 2017-02-02
- Added filesize check to upload
- Added empty filename check to upload
- Generate thumbnails asynchronously if creating Media on console commands.
- translation in twig templates now uses the twig translation filter
- Moved ApiDoc groups from string to array.
- 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 config key to define default resizer
- Added config key to define default resizer adapter
- The
provider
andcontext
options are now required - Use
$request
instead of$this->get('request')
- Ability to provide custom attributes for a thumbnail
3.2.0 - 2016-08-18
- Created
getReferenceUrl
method for all video providers - Add parameter to specify aws_sdk version
- Allow
knplabs/gaufrette
^0.2
- Update configuration and metadatabuilder to comply with AWS SDK 3.x
- Fixed wrong block inheritance in edit template
- Fixed wrong html usage in edit template
- Fixed loop in
Pool::getDownloadSecurity
- Fixed deprecated call of
downloadSecurity
inResources/views/MediaAdmin/edit.html.twig
template.
3.1.0 - 2016-07-22
- Added
Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber::onClear
to clear therootCategories
cache when the EntityManager is cleared - Added
region
key to S3Client config - Added
alt
attribute to thumbnail twig tag
- Injection of
Session
instead of the wholeContainer
inSecurity/SessionDownloadStrategy
Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber::onClear
now subscribes toonClear
too
$container
property inSecurity/SessionDownloadStrategy
- Deprecated
Pool::$downloadSecurities
forPool::$downloadStrategies
property - Deprecated
Pool::addDownloadSecurity
forPool::addDownloadStrategy
method - Deprecated
Pool::getDownloadSecurity
forPool::getDownloadStrategy
method
- Restored
ApiDoc
andQueryParam
use statements inApi/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
- Internal test classes are now excluded from the autoloader