Skip to content

Commit

Permalink
4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jun 13, 2019
1 parent a42d487 commit 9082b5c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 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/).

## [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
Expand Down
4 changes: 2 additions & 2 deletions src/Command/TwoStepVerificationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/AdminResettingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/AdminSecurityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/AdminResettingControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Controller/AdminSecurityControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 9082b5c

Please sign in to comment.