All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
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