forked from KnpLabs/KnpUserBundle
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3076 from stof/prepare_major_version
Prepare the major version
- Loading branch information
Showing
44 changed files
with
44 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ | |
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "3.x-dev" | ||
"dev-master": "4.x-dev" | ||
} | ||
}, | ||
"autoload": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,9 @@ | |
* @author Antoine Hérault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
#[AsCommand(name: 'fos:user:activate', description: 'Activate a user')] | ||
class ActivateUserCommand extends Command | ||
final class ActivateUserCommand extends Command | ||
{ | ||
// BC with Symfony <5.3 | ||
protected static $defaultName = 'fos:user:activate'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,9 @@ | |
* @author Luis Cordova <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
#[AsCommand(name: 'fos:user:create', description: 'Create a user.')] | ||
class CreateUserCommand extends Command | ||
final class CreateUserCommand extends Command | ||
{ | ||
// BC with Symfony <5.3 | ||
protected static $defaultName = 'fos:user:create'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,9 @@ | |
* @author Antoine Hérault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
#[AsCommand(name: 'fos:user:deactivate', description: 'Deactivate a user')] | ||
class DeactivateUserCommand extends Command | ||
final class DeactivateUserCommand extends Command | ||
{ | ||
// BC with Symfony <5.3 | ||
protected static $defaultName = 'fos:user:deactivate'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,9 @@ | |
* @author Lenar Lõhmus <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
#[AsCommand(name: 'fos:user:demote', description: 'Demote a user by removing a role')] | ||
class DemoteUserCommand extends RoleCommand | ||
final class DemoteUserCommand extends RoleCommand | ||
{ | ||
// BC with Symfony <5.3 | ||
protected static $defaultName = 'fos:user:demote'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,9 @@ | |
* @author Lenar Lõhmus <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
#[AsCommand(name: 'fos:user:promote', description: 'Promotes a user by adding a role')] | ||
class PromoteUserCommand extends RoleCommand | ||
final class PromoteUserCommand extends RoleCommand | ||
{ | ||
// BC with Symfony <5.3 | ||
protected static $defaultName = 'fos:user:promote'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,8 @@ | |
* | ||
* @author Thibault Duplessis <[email protected]> | ||
* @author Christophe Coevoet <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class ChangePasswordController extends AbstractController | ||
final class ChangePasswordController extends AbstractController | ||
{ | ||
private $eventDispatcher; | ||
private $formFactory; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,8 @@ | |
* Controller managing the user profile. | ||
* | ||
* @author Christophe Coevoet <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class ProfileController extends AbstractController | ||
final class ProfileController extends AbstractController | ||
{ | ||
private $eventDispatcher; | ||
private $formFactory; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,10 +33,8 @@ | |
* | ||
* @author Thibault Duplessis <[email protected]> | ||
* @author Christophe Coevoet <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class RegistrationController extends AbstractController | ||
final class RegistrationController extends AbstractController | ||
{ | ||
private $eventDispatcher; | ||
private $formFactory; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,8 @@ | |
* | ||
* @author Thibault Duplessis <[email protected]> | ||
* @author Christophe Coevoet <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class ResettingController extends AbstractController | ||
final class ResettingController extends AbstractController | ||
{ | ||
private $eventDispatcher; | ||
private $formFactory; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,8 @@ | |
* | ||
* @author Thibault Duplessis <[email protected]> | ||
* @author Christophe Coevoet <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class SecurityController extends AbstractController | ||
final class SecurityController extends AbstractController | ||
{ | ||
private $authenticationUtils; | ||
private $tokenManager; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,8 @@ | |
* @author Ryan Weaver <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class CheckForSessionPass implements CompilerPassInterface | ||
final class CheckForSessionPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,8 @@ | |
* @author Ryan Weaver <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class CheckForSwiftMailerPass implements CompilerPassInterface | ||
final class CheckForSwiftMailerPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,8 @@ | |
* @author Vasily Khayrulin <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class InjectRememberMeServicesPass implements CompilerPassInterface | ||
final class InjectRememberMeServicesPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,8 @@ | |
* @author Gocha Ossinkine <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class InjectUserCheckerPass implements CompilerPassInterface | ||
final class InjectUserCheckerPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,8 @@ | |
* @author Christophe Coevoet <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class ValidationPass implements CompilerPassInterface | ||
final class ValidationPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container): void | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,15 @@ | |
* @author Christophe Coevoet <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class Configuration implements ConfigurationInterface | ||
final class Configuration implements ConfigurationInterface | ||
{ | ||
public function getConfigTreeBuilder(): TreeBuilder | ||
{ | ||
$treeBuilder = new TreeBuilder('fos_user'); | ||
$rootNode = $treeBuilder->getRootNode(); | ||
|
||
$supportedDrivers = ['orm', 'mongodb', 'couchdb', 'custom']; | ||
$supportedDrivers = ['orm', 'mongodb', 'custom']; | ||
|
||
$rootNode | ||
->children() | ||
|
@@ -44,14 +42,6 @@ public function getConfigTreeBuilder(): TreeBuilder | |
->ifNotInArray($supportedDrivers) | ||
->thenInvalid('The driver %s is not supported. Please choose one of '.json_encode($supportedDrivers)) | ||
->end() | ||
->validate() | ||
->ifInArray(['couchdb']) | ||
->then(function ($v) { | ||
trigger_deprecation('friendsofsymfony/user-bundle', '3.3.0', 'The CouchDB ODM integration is deprecated because the CouchDB ODM itself is unmaintained.'); | ||
|
||
return $v; | ||
}) | ||
->end() | ||
->cannotBeOverwritten() | ||
->isRequired() | ||
->cannotBeEmpty() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.