File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 48
48
use Symfony \Component \Security \Http \Controller \UserValueResolver ;
49
49
use Symfony \Component \Security \Http \Firewall ;
50
50
use Symfony \Component \Security \Http \HttpUtils ;
51
+ use Symfony \Component \Security \Http \Impersonate \ImpersonateUrlGenerator ;
51
52
use Symfony \Component \Security \Http \Logout \LogoutUrlGenerator ;
52
53
use Symfony \Component \Security \Http \Session \SessionAuthenticationStrategy ;
53
54
use Symfony \Component \Security \Http \Session \SessionAuthenticationStrategyInterface ;
160
161
])
161
162
->tag ('security.voter ' , ['priority ' => 245 ])
162
163
164
+ ->set ('security.impersonate_url_generator ' , ImpersonateUrlGenerator::class)
165
+ ->args ([
166
+ service ('request_stack ' ),
167
+ service ('security.firewall.map ' ),
168
+ service ('security.token_storage ' ),
169
+ ])
170
+
163
171
// Firewall related services
164
172
->set ('security.firewall ' , FirewallListener::class)
165
173
->args ([
Original file line number Diff line number Diff line change 25
25
->set ('twig.extension.security ' , SecurityExtension::class)
26
26
->args ([
27
27
service ('security.authorization_checker ' )->ignoreOnInvalid (),
28
+ service ('security.impersonate_url_generator ' )->ignoreOnInvalid (),
28
29
])
29
30
->tag ('twig.extension ' )
30
31
;
You can’t perform that action at this time.
0 commit comments