[Security] added missing argument to SwitchUserListener
This commit is contained in:
parent
8a879531bd
commit
3ac4994507
@ -626,6 +626,7 @@ class SecurityExtension extends Extension
|
|||||||
$switchUserListenerId = 'security.authentication.switchuser_listener.'.$id;
|
$switchUserListenerId = 'security.authentication.switchuser_listener.'.$id;
|
||||||
$listener = $container->setDefinition($switchUserListenerId, new DefinitionDecorator('security.authentication.switchuser_listener'));
|
$listener = $container->setDefinition($switchUserListenerId, new DefinitionDecorator('security.authentication.switchuser_listener'));
|
||||||
$listener->setArgument(1, new Reference($userProvider));
|
$listener->setArgument(1, new Reference($userProvider));
|
||||||
|
$listener->setArgument(3, $id);
|
||||||
|
|
||||||
if (isset($config['parameter'])) {
|
if (isset($config['parameter'])) {
|
||||||
$listener->setArgument(5, $config['parameter']);
|
$listener->setArgument(5, $config['parameter']);
|
||||||
|
@ -164,6 +164,7 @@
|
|||||||
<argument type="service" id="security.context" />
|
<argument type="service" id="security.context" />
|
||||||
<argument type="service" id="security.user.provider.in_memory" />
|
<argument type="service" id="security.user.provider.in_memory" />
|
||||||
<argument type="service" id="security.account_checker" />
|
<argument type="service" id="security.account_checker" />
|
||||||
|
<argument /> <!-- Provider Key -->
|
||||||
<argument type="service" id="security.access.decision_manager" />
|
<argument type="service" id="security.access.decision_manager" />
|
||||||
<argument type="service" id="logger" on-invalid="null" />
|
<argument type="service" id="logger" on-invalid="null" />
|
||||||
<argument>%security.authentication.switchuser.parameter%</argument>
|
<argument>%security.authentication.switchuser.parameter%</argument>
|
||||||
|
Reference in New Issue
Block a user