Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Oct 18, 2021
1 parent 961e51a commit 9b66c2e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.35.0](https://github.com/sonata-project/SonataMediaBundle/compare/3.34.2...3.35.0) - 2021-10-18
### Deprecated
- [[#2158](https://github.com/sonata-project/SonataMediaBundle/pull/2158)] Deprecated passing null value for the media parameter to twig functions ([@jordisala1991](https://github.com/jordisala1991))
- [[#2159](https://github.com/sonata-project/SonataMediaBundle/pull/2159)] Deprecated `MigrateToJsonTypeCommand` ([@jordisala1991](https://github.com/jordisala1991))
- [[#2159](https://github.com/sonata-project/SonataMediaBundle/pull/2159)] Deprecated `ServiceProviderDataTransformer` ([@jordisala1991](https://github.com/jordisala1991))

### Fixed
- [[#2171](https://github.com/sonata-project/SonataMediaBundle/pull/2171)] Docblock for `CategoryManagerInterface::getRootCategory()` to tell it can return `null` ([@phansys](https://github.com/phansys))
- [[#2169](https://github.com/sonata-project/SonataMediaBundle/pull/2169)] Call to an undefined method `Connection::fetchAll()` when using `doctrine/dbal:3.x` ([@phansys](https://github.com/phansys))
- [[#2166](https://github.com/sonata-project/SonataMediaBundle/pull/2166)] Fixed usage of deprecated custom twig tags ([@jordisala1991](https://github.com/jordisala1991))

### Removed
- [[#2169](https://github.com/sonata-project/SonataMediaBundle/pull/2169)] Support for `doctrine/dbal` < 2.11 ([@phansys](https://github.com/phansys))

## [3.34.2](https://github.com/sonata-project/SonataMediaBundle/compare/3.34.1...3.34.2) - 2021-10-08
### Fixed
- [[#2152](https://github.com/sonata-project/SonataMediaBundle/pull/2152)] Fixed safe output of `sonata_media` and `sonata_thumbnail` functions ([@jordisala1991](https://github.com/jordisala1991))
Expand Down
4 changes: 2 additions & 2 deletions src/Command/MigrateToJsonTypeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* NEXT_MAJOR: remove this file.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.35, to be removed in 4.0.
*/
class MigrateToJsonTypeCommand extends BaseCommand
{
Expand Down Expand Up @@ -51,7 +51,7 @@ public function configure()
public function execute(InputInterface $input, OutputInterface $output)
{
@trigger_error(sprintf(
'%s is deprecated since sonata-project/media-bundle 3.x and will be removed'
'%s is deprecated since sonata-project/media-bundle 3.35 and will be removed'
.' in version 4.0. Make sure you execute it to migrate to json type before upgrading to 4.0.',
__CLASS__
), \E_USER_DEPRECATED);
Expand Down
4 changes: 2 additions & 2 deletions src/Form/DataTransformer/ServiceProviderDataTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* NEXT_MAJOR: remove this file.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/media-bundle 3.35, to be removed in 4.0.
*/
class ServiceProviderDataTransformer implements DataTransformerInterface, LoggerAwareInterface
{
Expand All @@ -49,7 +49,7 @@ public function transform($value)
public function reverseTransform($value)
{
@trigger_error(sprintf(
'%s is deprecated since sonata-project/media-bundle 3.x and will be removed'
'%s is deprecated since sonata-project/media-bundle 3.35 and will be removed'
.' in version 4.0. Use %s instead.',
__CLASS__,
ProviderDataTransformer::class
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/MediaRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private function getMedia($media): ?MediaInterface
@trigger_error(
'Using SonataMediaBundle custom Twig functions with a media that is not'
.' the identifier of the media or the media itself is deprecated since'
.' sonata-project/media-bundle 3.x and will be removed in version 4.0.',
.' sonata-project/media-bundle 3.35 and will be removed in version 4.0.',
\E_USER_DEPRECATED
);
// throw new \TypeError(sprintf(
Expand Down

0 comments on commit 9b66c2e

Please sign in to comment.