-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
27 changed files
with
592 additions
and
252 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NucleosUserBundle package. | ||
* | ||
* (c) Christian Gripp <mail@core23.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
use Nucleos\UserBundle\Action\ChangePasswordAction; | ||
use Nucleos\UserBundle\Form\Model\ChangePassword; | ||
use Nucleos\UserBundle\Form\Type\ChangePasswordFormType; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
return static function (ContainerConfigurator $container): void { | ||
$container->services() | ||
|
||
->set(ChangePasswordFormType::class) | ||
->tag('form.type') | ||
->args([ | ||
ChangePassword::class, | ||
]) | ||
|
||
->set(ChangePasswordAction::class) | ||
->public() | ||
->tag('form.type') | ||
->args([ | ||
new Reference('twig'), | ||
new Reference('router'), | ||
new Reference('security.helper'), | ||
new Reference('event_dispatcher'), | ||
new Reference('form.factory'), | ||
new Reference('nucleos_user.user_manager'), | ||
]) | ||
|
||
; | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NucleosUserBundle package. | ||
* | ||
* (c) Christian Gripp <mail@core23.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
use Nucleos\UserBundle\Command\ActivateUserCommand; | ||
use Nucleos\UserBundle\Command\ChangePasswordCommand; | ||
use Nucleos\UserBundle\Command\CreateUserCommand; | ||
use Nucleos\UserBundle\Command\DeactivateUserCommand; | ||
use Nucleos\UserBundle\Command\DemoteUserCommand; | ||
use Nucleos\UserBundle\Command\PromoteUserCommand; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
return static function (ContainerConfigurator $container): void { | ||
$container->services() | ||
|
||
->set(ActivateUserCommand::class) | ||
->tag('console.command', [ | ||
'command' => 'nucleos:user:activate', | ||
]) | ||
->args([ | ||
new Reference('nucleos_user.util.user_manipulator'), | ||
]) | ||
|
||
->set(ChangePasswordCommand::class) | ||
->tag('console.command', [ | ||
'command' => 'nucleos:user:change-password', | ||
]) | ||
->args([ | ||
new Reference('nucleos_user.util.user_manipulator'), | ||
]) | ||
|
||
->set(CreateUserCommand::class) | ||
->tag('console.command', [ | ||
'command' => 'nucleos:user:create', | ||
]) | ||
->args([ | ||
new Reference('nucleos_user.util.user_manipulator'), | ||
]) | ||
|
||
->set(DeactivateUserCommand::class) | ||
->tag('console.command', [ | ||
'command' => 'nucleos:user:deactivate', | ||
]) | ||
->args([ | ||
new Reference('nucleos_user.util.user_manipulator'), | ||
]) | ||
|
||
->set(DemoteUserCommand::class) | ||
->tag('console.command', [ | ||
'command' => 'nucleos:user:demote', | ||
]) | ||
->args([ | ||
new Reference('nucleos_user.util.user_manipulator'), | ||
]) | ||
|
||
->set(PromoteUserCommand::class) | ||
->tag('console.command', [ | ||
'command' => 'nucleos:user:promote', | ||
]) | ||
->args([ | ||
new Reference('nucleos_user.util.user_manipulator'), | ||
]) | ||
|
||
; | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NucleosUserBundle package. | ||
* | ||
* (c) Christian Gripp <mail@core23.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
use Doctrine\Persistence\ObjectManager; | ||
use Nucleos\UserBundle\Doctrine\UserListener; | ||
use Nucleos\UserBundle\Doctrine\UserManager; | ||
use Symfony\Component\DependencyInjection\Parameter; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
return static function (ContainerConfigurator $container): void { | ||
$container->services() | ||
|
||
->set('nucleos_user.user_manager.default', UserManager::class) | ||
->args([ | ||
new Reference('nucleos_user.util.password_updater'), | ||
new Reference('nucleos_user.util.canonical_fields_updater'), | ||
new Reference('nucleos_user.object_manager'), | ||
new Parameter('nucleos_user.model.user.class'), | ||
]) | ||
|
||
// The factory is configured in the DI extension class to support more Symfony versions | ||
->set('nucleos_user.object_manager', ObjectManager::class) | ||
->args([ | ||
new Parameter('nucleos_user.model_manager_name'), | ||
]) | ||
|
||
->set('nucleos_user.user_listener', UserListener::class) | ||
->args([ | ||
new Reference('nucleos_user.util.password_updater'), | ||
new Reference('nucleos_user.util.canonical_fields_updater'), | ||
]) | ||
|
||
; | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NucleosUserBundle package. | ||
* | ||
* (c) Christian Gripp <mail@core23.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
use Nucleos\UserBundle\Doctrine\GroupManager; | ||
use Symfony\Component\DependencyInjection\Parameter; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
return static function (ContainerConfigurator $container): void { | ||
$container->services() | ||
|
||
->set('nucleos_user.group_manager.default', GroupManager::class) | ||
->args([ | ||
new Reference('nucleos_user.object_manager'), | ||
new Parameter('nucleos_user.model.group.class'), | ||
]) | ||
|
||
; | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NucleosUserBundle package. | ||
* | ||
* (c) Christian Gripp <mail@core23.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
use Nucleos\UserBundle\EventListener\FlashListener; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
return static function (ContainerConfigurator $container): void { | ||
$container->services() | ||
|
||
->set(FlashListener::class) | ||
->tag('kernel.event_subscriber') | ||
->args([ | ||
new Reference('session.flash_bag'), | ||
new Reference('translator'), | ||
]) | ||
|
||
; | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.