Skip to content

Latest commit

 

History

History
762 lines (635 loc) · 36.3 KB

CHANGELOG.md

File metadata and controls

762 lines (635 loc) · 36.3 KB

Change Log

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

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