Skip to content

Commit

Permalink
3.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jun 19, 2020
1 parent 4487121 commit 55d4a34
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 28 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.25.0](https://github.com/sonata-project/SonataMediaBundle/compare/3.24.0...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](https://github.com/sonata-project/SonataMediaBundle/compare/3.23.1...3.24.0) - 2020-03-15
### Fixed
- BlockBundle deprecations
Expand Down
20 changes: 10 additions & 10 deletions src/Block/GalleryBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function configureSettings(OptionsResolver $resolver)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function buildEditForm(FormMapper $formMapper, BlockInterface $block)
Expand Down Expand Up @@ -232,7 +232,7 @@ public function load(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function prePersist(BlockInterface $block)
{
Expand All @@ -242,7 +242,7 @@ public function prePersist(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function preUpdate(BlockInterface $block)
{
Expand All @@ -252,7 +252,7 @@ public function preUpdate(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function getBlockMetadata($code = null)
Expand All @@ -265,7 +265,7 @@ public function getBlockMetadata($code = null)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function buildCreateForm(FormMapper $formMapper, BlockInterface $block)
Expand All @@ -276,7 +276,7 @@ public function buildCreateForm(FormMapper $formMapper, BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postPersist(BlockInterface $block)
{
Expand All @@ -285,7 +285,7 @@ public function postPersist(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postUpdate(BlockInterface $block)
{
Expand All @@ -294,7 +294,7 @@ public function postUpdate(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function preRemove(BlockInterface $block)
{
Expand All @@ -303,7 +303,7 @@ public function preRemove(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postRemove(BlockInterface $block)
{
Expand All @@ -312,7 +312,7 @@ public function postRemove(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function validateBlock(ErrorElement $errorElement, BlockInterface $block)
Expand Down
20 changes: 10 additions & 10 deletions src/Block/GalleryListBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct($twigOrName, ?EngineInterface $templating, GalleryMa
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function buildEditForm(FormMapper $formMapper, BlockInterface $block)
Expand Down Expand Up @@ -177,7 +177,7 @@ public function configureSettings(OptionsResolver $resolver)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function getBlockMetadata($code = null)
Expand All @@ -190,7 +190,7 @@ public function getBlockMetadata($code = null)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function buildCreateForm(FormMapper $formMapper, BlockInterface $block)
Expand All @@ -201,7 +201,7 @@ public function buildCreateForm(FormMapper $formMapper, BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function prePersist(BlockInterface $block)
{
Expand All @@ -210,7 +210,7 @@ public function prePersist(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postPersist(BlockInterface $block)
{
Expand All @@ -219,7 +219,7 @@ public function postPersist(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function preUpdate(BlockInterface $block)
{
Expand All @@ -228,7 +228,7 @@ public function preUpdate(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postUpdate(BlockInterface $block)
{
Expand All @@ -237,7 +237,7 @@ public function postUpdate(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function preRemove(BlockInterface $block)
{
Expand All @@ -246,7 +246,7 @@ public function preRemove(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postRemove(BlockInterface $block)
{
Expand All @@ -255,7 +255,7 @@ public function postRemove(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function validateBlock(ErrorElement $errorElement, BlockInterface $block)
Expand Down
16 changes: 8 additions & 8 deletions src/Block/MediaBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function configureSettings(OptionsResolver $resolver)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function buildEditForm(FormMapper $formMapper, BlockInterface $block)
Expand Down Expand Up @@ -210,7 +210,7 @@ public function preUpdate(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function getBlockMetadata($code = null)
Expand All @@ -223,7 +223,7 @@ public function getBlockMetadata($code = null)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function buildCreateForm(FormMapper $formMapper, BlockInterface $block)
Expand All @@ -234,7 +234,7 @@ public function buildCreateForm(FormMapper $formMapper, BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postPersist(BlockInterface $block)
{
Expand All @@ -243,7 +243,7 @@ public function postPersist(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postUpdate(BlockInterface $block)
{
Expand All @@ -252,7 +252,7 @@ public function postUpdate(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function preRemove(BlockInterface $block)
{
Expand All @@ -261,7 +261,7 @@ public function preRemove(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0.
*/
public function postRemove(BlockInterface $block)
{
Expand All @@ -270,7 +270,7 @@ public function postRemove(BlockInterface $block)
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0. You should use
* @deprecated since sonata-project/media-bundle 3.25, to be removed in 4.0. You should use
* `Sonata\BlockBundle\Block\Service\EditableBlockService` interface instead.
*/
public function validateBlock(ErrorElement $errorElement, BlockInterface $block)
Expand Down

0 comments on commit 55d4a34

Please sign in to comment.