From 377e03357d2476d3d8fd4c795c8658ae749e11ad Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 21 May 2022 23:48:39 +0200 Subject: [PATCH] 1.10.0 (#320) --- CHANGELOG.md | 6 ++++++ .../Compiler/StatusRendererCompilerPass.php | 2 +- src/Bridge/Symfony/SonataTwigSymfonyBundle.php | 2 +- src/Extension/StatusRuntime.php | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41a9d7b..a7a5270 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [1.10.0](https://github.com/sonata-project/twig-extensions/compare/1.9.1...1.10.0) - 2022-05-21 +### Deprecated +- [[#318](https://github.com/sonata-project/twig-extensions/pull/318)] Passing a string to StatusRuntime::statusClass ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#318](https://github.com/sonata-project/twig-extensions/pull/318)] StatusRendererCompilerPass ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#316](https://github.com/sonata-project/twig-extensions/pull/316)] Deprecated custom bundle file for flex recipe. ([@jordisala1991](https://github.com/jordisala1991)) + ## [1.9.1](https://github.com/sonata-project/twig-extensions/compare/1.9.0...1.9.1) - 2021-12-04 ### Fixed - [[#269](https://github.com/sonata-project/twig-extensions/pull/269)] Multiple phpdoc ([@VincentLanglet](https://github.com/VincentLanglet)) diff --git a/src/Bridge/Symfony/DependencyInjection/Compiler/StatusRendererCompilerPass.php b/src/Bridge/Symfony/DependencyInjection/Compiler/StatusRendererCompilerPass.php index 3252c92..a45dd84 100644 --- a/src/Bridge/Symfony/DependencyInjection/Compiler/StatusRendererCompilerPass.php +++ b/src/Bridge/Symfony/DependencyInjection/Compiler/StatusRendererCompilerPass.php @@ -22,7 +22,7 @@ * * NEXT_MAJOR: Remove this compiler pass. * - * @deprecated Since version 1.x, to be removed in 2.0. + * @deprecated Since version 1.10, to be removed in 2.0. */ final class StatusRendererCompilerPass implements CompilerPassInterface { diff --git a/src/Bridge/Symfony/SonataTwigSymfonyBundle.php b/src/Bridge/Symfony/SonataTwigSymfonyBundle.php index d2e4078..af70839 100644 --- a/src/Bridge/Symfony/SonataTwigSymfonyBundle.php +++ b/src/Bridge/Symfony/SonataTwigSymfonyBundle.php @@ -14,7 +14,7 @@ namespace Sonata\Twig\Bridge\Symfony; @trigger_error(sprintf( - 'The %s\SonataTwigSymfonyBundle class is deprecated since sonata-project/twig-extensions 1.x, to be removed in version 2.0. Use %s instead.', + 'The %s\SonataTwigSymfonyBundle class is deprecated since sonata-project/twig-extensions 1.10, to be removed in version 2.0. Use %s instead.', __NAMESPACE__, SonataTwigBundle::class ), \E_USER_DEPRECATED); diff --git a/src/Extension/StatusRuntime.php b/src/Extension/StatusRuntime.php index e4a3e31..befb002 100644 --- a/src/Extension/StatusRuntime.php +++ b/src/Extension/StatusRuntime.php @@ -48,7 +48,7 @@ public function statusClass($object, $statusType = null, string $default = ''): // NEXT_MAJOR: Remove this check. if ($object instanceof FlashManagerInterface && null !== $statusType) { @trigger_error(sprintf( - 'Passing a %s as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.x' + 'Passing a %s as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.10' .' and will have a different behaviour in 2.0.', FlashManagerInterface::class, __METHOD__ @@ -63,7 +63,7 @@ public function statusClass($object, $statusType = null, string $default = ''): // NEXT_MAJOR: Throw an exception instead. @trigger_error(sprintf( - 'Passing other type than object as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.x' + 'Passing other type than object as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.10' .' and will throw an exception in 2.0.', __METHOD__ ), \E_USER_DEPRECATED);