File tree 4 files changed +40
-25
lines changed
Filter options
src/Symfony/Bundle/SecurityBundle
4 files changed +40
-25
lines changed
Original file line number Diff line number Diff line change @@ -107,6 +107,12 @@ public function load(array $configs, ContainerBuilder $container)
107
107
$ loader ->load ('security_listeners.xml ' );
108
108
$ loader ->load ('security_rememberme.xml ' );
109
109
110
+ if ($ this ->authenticatorManagerEnabled = $ config ['enable_authenticator_manager ' ]) {
111
+ $ loader ->load ('security_authenticator.xml ' );
112
+ } else {
113
+ $ loader ->load ('security_legacy.xml ' );
114
+ }
115
+
110
116
if (class_exists (AbstractExtension::class)) {
111
117
$ loader ->load ('templating_twig.xml ' );
112
118
}
@@ -141,10 +147,6 @@ public function load(array $configs, ContainerBuilder $container)
141
147
$ container ->setParameter ('security.access.always_authenticate_before_granting ' , $ config ['always_authenticate_before_granting ' ]);
142
148
$ container ->setParameter ('security.authentication.hide_user_not_found ' , $ config ['hide_user_not_found ' ]);
143
149
144
- if ($ this ->authenticatorManagerEnabled = $ config ['enable_authenticator_manager ' ]) {
145
- $ loader ->load ('authenticators.xml ' );
146
- }
147
-
148
150
$ this ->createFirewalls ($ config , $ container );
149
151
$ this ->createAuthorization ($ config , $ container );
150
152
$ this ->createRoleHierarchy ($ config , $ container );
Original file line number Diff line number Diff line change 45
45
</service >
46
46
47
47
<!-- Authentication related services -->
48
- <service id =" security.authentication.manager.provider" class =" Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager" >
49
- <argument /> <!-- providers -->
50
- <argument >%security.authentication.manager.erase_credentials%</argument >
51
- <call method =" setEventDispatcher" >
52
- <argument type =" service" id =" event_dispatcher" />
53
- </call >
54
- </service >
55
- <service id =" security.authentication.manager.authenticator" class =" Symfony\Component\Security\Http\Authentication\AuthenticatorManager" >
56
- <argument /> <!-- authenticators -->
57
- <argument type =" service" id =" event_dispatcher" />
58
- <argument >%security.authentication.manager.erase_credentials%</argument >
59
- <call method =" setEventDispatcher" >
60
- <argument type =" service" id =" event_dispatcher" />
61
- </call >
62
- </service >
63
- <service id =" security.authentication.manager" alias =" security.authentication.manager.provider" />
64
- <service id =" Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface" alias =" security.authentication.manager" />
65
-
66
48
<service id =" security.authentication.trust_resolver" class =" Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver" />
67
49
68
50
<service id =" security.authentication.session_strategy" class =" Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy" >
Original file line number Diff line number Diff line change 4
4
xsi : schemaLocation =" http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd" >
5
5
6
6
<services >
7
+ <!-- Manager -->
8
+
9
+ <service id =" security.authentication.manager.authenticator" class =" Symfony\Component\Security\Http\Authentication\AuthenticatorManager" >
10
+ <argument type =" abstract" >authenticators</argument >
11
+ <argument type =" service" id =" event_dispatcher" />
12
+ <argument >%security.authentication.manager.erase_credentials%</argument >
13
+ <call method =" setEventDispatcher" >
14
+ <argument type =" service" id =" event_dispatcher" />
15
+ </call >
16
+ </service >
17
+ <service id =" Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface" alias =" security.authentication.manager" />
18
+
7
19
<service id =" security.authenticator_handler"
8
20
class =" Symfony\Component\Security\Http\Authentication\AuthenticatorHandler"
9
21
>
38
50
<argument type =" service" id =" security.encoder_factory" />
39
51
</service >
40
52
41
- <service id =" Symfony\Component\Security\Http\EventListener\PasswordMigratingListener" >
53
+ <service id =" security.listener.password_migrating " class = " Symfony\Component\Security\Http\EventListener\PasswordMigratingListener" >
42
54
<tag name =" kernel.event_subscriber" />
43
55
<argument type =" service" id =" security.encoder_factory" />
44
56
</service >
45
57
46
- <service id =" Symfony\Component\Security\Http\EventListener\UserCheckerListener" >
58
+ <service id =" security.listener.user_checker " class = " Symfony\Component\Security\Http\EventListener\UserCheckerListener" >
47
59
<tag name =" kernel.event_subscriber" />
48
60
<argument type =" service" id =" Symfony\Component\Security\Core\User\UserCheckerInterface" />
49
61
</service >
53
65
abstract =" true" >
54
66
<tag name =" monolog.logger" channel =" security" />
55
67
<argument type =" abstract" >remember me services</argument >
56
- <argument type =" abstract" >provider key</argument >
57
68
<argument type =" service" id =" logger" on-invalid =" null" />
58
69
</service >
59
70
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+
3
+ <container xmlns =" http://symfony.com/schema/dic/services"
4
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd" >
6
+
7
+ <services >
8
+ <defaults public =" false" />
9
+
10
+ <!-- Authentication related services -->
11
+ <service id =" security.authentication.manager" class =" Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager" >
12
+ <argument /> <!-- providers -->
13
+ <argument >%security.authentication.manager.erase_credentials%</argument >
14
+ <call method =" setEventDispatcher" >
15
+ <argument type =" service" id =" event_dispatcher" />
16
+ </call >
17
+ </service >
18
+ <service id =" Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface" alias =" security.authentication.manager" />
19
+ </services >
20
+ </container >
You can’t perform that action at this time.
0 commit comments