Skip to content

Releases: sonata-project/SonataMediaBundle

3.28.0

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

Added

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

Changed

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

Deprecated

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

Fixed

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

Removed

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

3.27.0

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

Added

Fixed

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

Removed

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

3.26.0

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

Added

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

Change

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

Changed

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

Deprecated

Fixed

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

Removed

3.25.0

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

Added

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

Changed

  • Changed the validation message for the validation rule

Fixed

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

Removed

  • remove SonataCoreBundle dependencies

3.24.0

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

Fixed

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

Changed

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

Removed

  • support for Symfony < 4.3

3.23.1

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

Fixed

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

3.23.0

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

Added

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

Fixed

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

3.22.0

16 Dec 06:56
3.22.0
7c96c71
Compare
Choose a tag to compare

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

21 Oct 06:52
3.21.0
0f54b61
Compare
Choose a tag to compare

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

14 Jun 06:14
3.20.1
3f236ed
Compare
Choose a tag to compare

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.