forked from nucleos/NucleosProfileBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistration.php
More file actions
63 lines (54 loc) · 1.99 KB
/
registration.php
File metadata and controls
63 lines (54 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/*
* (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\ProfileBundle\Action\CheckRegistrationMailAction;
use Nucleos\ProfileBundle\Action\ConfirmRegistrationAction;
use Nucleos\ProfileBundle\Action\RegistrationAction;
use Nucleos\ProfileBundle\Action\RegistrationConfirmedAction;
use Nucleos\ProfileBundle\Form\Type\RegistrationFormType;
use Symfony\Component\DependencyInjection\Parameter;
use Symfony\Component\DependencyInjection\Reference;
return static function (ContainerConfigurator $container): void {
$container->services()
->set(RegistrationFormType::class)
->tag('form.type')
->args([
new Parameter('nucleos_user.model.user.class'),
])
->set(RegistrationAction::class)
->public()
->args([
new Reference('event_dispatcher'),
new Reference('form.factory'),
new Reference('nucleos_user.user_manager'),
new Reference('router'),
new Reference('twig'),
])
->set(CheckRegistrationMailAction::class)
->public()
->args([
new Reference('nucleos_user.user_manager'),
new Reference('twig'),
new Reference('router'),
])
->set(ConfirmRegistrationAction::class)
->public()
->args([
new Reference('event_dispatcher'),
new Reference('nucleos_user.user_manager'),
new Reference('router'),
])
->set(RegistrationConfirmedAction::class)
->public()
->args([
new Reference('twig'),
new Reference('security.helper'),
new Reference('security.token_storage'),
])
;
};