Releases: sonata-project/SonataMediaBundle
Releases · sonata-project/SonataMediaBundle
3.3.1
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
Added
- Added config key to define default resizer
- Added config key to define default resizer adapter
Fixed
- The
provider
andcontext
options are now required - Use
$request
instead of$this->get('request')
Removed
- Ability to provide custom attributes for a thumbnail
3.2.0
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
inResources/views/MediaAdmin/edit.html.twig
template.
3.1.0
Added
- 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
Changed
- Injection of
Session
instead of the wholeContainer
inSecurity/SessionDownloadStrategy
Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber::onClear
now subscribes toonClear
too
Deprecated
$container
property inSecurity/SessionDownloadStrategy
- Deprecated
Pool::$downloadSecurities
forPool::$downloadStrategies
property - Deprecated
Pool::addDownloadSecurity
forPool::addDownloadStrategy
method - Deprecated
Pool::getDownloadSecurity
forPool::getDownloadStrategy
method
Fixed
- 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
Removed
- Internal test classes are now excluded from the autoloader