From 9082b5c06ddd0fa3f1ed39582a92f53bfcbc768a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 13 Jun 2019 21:23:37 +0200 Subject: [PATCH] 4.4.0 --- CHANGELOG.md | 14 ++++++++++++++ src/Command/TwoStepVerificationCommand.php | 4 ++-- src/Controller/AdminResettingController.php | 2 +- src/Controller/AdminSecurityController.php | 2 +- tests/Controller/AdminResettingControllerTest.php | 2 +- tests/Controller/AdminSecurityControllerTest.php | 2 +- 6 files changed, 20 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 196e06db0..68bfb8513 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/). +## [4.4.0](https://github.com/sonata-project/SonataUserBundle/compare/4.3.0...4.4.0) - 2019-06-13 + +### Added +- Added compatibility with jms/serializer-bundle:^3.0 and jms/serializer:^2.0 +- Added missing google auth french translation + +### Fixed +- Fixed a bug with inability to use external model classes +- Fixed wrong google auth user manager argument when not using autowiring +- Fixed hard coded google auth redirection url + +### Changed +- Updated `_controller` attribute for routes which were using deprecated syntax. + ## [4.3.0](https://github.com/sonata-project/SonataUserBundle/compare/4.2.3...4.3.0) - 2019-01-30 ### Fixed diff --git a/src/Command/TwoStepVerificationCommand.php b/src/Command/TwoStepVerificationCommand.php index 1da856fb6..4f4c7c6f5 100644 --- a/src/Command/TwoStepVerificationCommand.php +++ b/src/Command/TwoStepVerificationCommand.php @@ -79,7 +79,7 @@ public function execute(InputInterface $input, OutputInterface $output): void if (null === $this->helper) { @trigger_error(sprintf( - 'Not providing the $helper argument of "%s::__construct()" is deprecated since 4.x and will no longer be possible in 5.0', + 'Not providing the $helper argument of "%s::__construct()" is deprecated since 4.3.0 and will no longer be possible in 5.0', __CLASS__ ), E_USER_DEPRECATED); $helper = $this->getContainer()->get('sonata.user.google.authenticator.provider'); @@ -89,7 +89,7 @@ public function execute(InputInterface $input, OutputInterface $output): void if (null === $this->userManager) { @trigger_error(sprintf( - 'Not providing the $userManager argument of "%s::__construct()" is deprecated since 4.x and will no longer be possible in 5.0', + 'Not providing the $userManager argument of "%s::__construct()" is deprecated since 4.3.0 and will no longer be possible in 5.0', __CLASS__ ), E_USER_DEPRECATED); $manager = $this->getContainer()->get('fos_user.user_manager'); diff --git a/src/Controller/AdminResettingController.php b/src/Controller/AdminResettingController.php index 7299cb25c..6f862f920 100644 --- a/src/Controller/AdminResettingController.php +++ b/src/Controller/AdminResettingController.php @@ -15,7 +15,7 @@ // NEXT_MAJOR: remove this file @trigger_error( - 'The '.__NAMESPACE__.'\AdminResettingController class is deprecated since version 4.x and will be removed in 5.0.' + 'The '.__NAMESPACE__.'\AdminResettingController class is deprecated since version 4.3.0 and will be removed in 5.0.' .' Use '.__NAMESPACE__.'\RequestAction, '.__NAMESPACE__.'\CheckEmailAction, '.__NAMESPACE__.'\ResetAction or '.__NAMESPACE__.'\SendEmailAction instead.', E_USER_DEPRECATED ); diff --git a/src/Controller/AdminSecurityController.php b/src/Controller/AdminSecurityController.php index d91e503bd..2fb50ace3 100644 --- a/src/Controller/AdminSecurityController.php +++ b/src/Controller/AdminSecurityController.php @@ -15,7 +15,7 @@ // NEXT_MAJOR: remove this file @trigger_error( - 'The '.__NAMESPACE__.'\AdminSecurityController class is deprecated since version 4.x and will be removed in 5.0.' + 'The '.__NAMESPACE__.'\AdminSecurityController class is deprecated since version 4.3.0 and will be removed in 5.0.' .' Use '.__NAMESPACE__.'\CheckLoginAction, '.__NAMESPACE__.'\LoginAction or '.__NAMESPACE__.'\LogoutAction instead.', E_USER_DEPRECATED ); diff --git a/tests/Controller/AdminResettingControllerTest.php b/tests/Controller/AdminResettingControllerTest.php index 4cdad4c6b..0b865e771 100644 --- a/tests/Controller/AdminResettingControllerTest.php +++ b/tests/Controller/AdminResettingControllerTest.php @@ -74,7 +74,7 @@ public function getController(): AdminResettingController /** * @group legacy - * @expectedDeprecation The Sonata\UserBundle\Controller\AdminResettingController class is deprecated since version 4.x and will be removed in 5.0. Use Sonata\UserBundle\Controller\RequestAction, Sonata\UserBundle\Controller\CheckEmailAction, Sonata\UserBundle\Controller\ResetAction or Sonata\UserBundle\Controller\SendEmailAction instead. + * @expectedDeprecation The Sonata\UserBundle\Controller\AdminResettingController class is deprecated since version 4.3.0 and will be removed in 5.0. Use Sonata\UserBundle\Controller\RequestAction, Sonata\UserBundle\Controller\CheckEmailAction, Sonata\UserBundle\Controller\ResetAction or Sonata\UserBundle\Controller\SendEmailAction instead. */ public function testCheckEmailAction(): void { diff --git a/tests/Controller/AdminSecurityControllerTest.php b/tests/Controller/AdminSecurityControllerTest.php index fd7c36dc3..b31bfbed7 100644 --- a/tests/Controller/AdminSecurityControllerTest.php +++ b/tests/Controller/AdminSecurityControllerTest.php @@ -66,7 +66,7 @@ public function getController(): AdminSecurityController /** * @group legacy - * @expectedDeprecation The Sonata\UserBundle\Controller\AdminSecurityController class is deprecated since version 4.x and will be removed in 5.0. Use Sonata\UserBundle\Controller\CheckLoginAction, Sonata\UserBundle\Controller\LoginAction or Sonata\UserBundle\Controller\LogoutAction instead. + * @expectedDeprecation The Sonata\UserBundle\Controller\AdminSecurityController class is deprecated since version 4.3.0 and will be removed in 5.0. Use Sonata\UserBundle\Controller\CheckLoginAction, Sonata\UserBundle\Controller\LoginAction or Sonata\UserBundle\Controller\LogoutAction instead. */ public function testLogoutAction(): void {