[SecurityBundle] add "service" option in remember_me firewall
This commit is contained in:
parent
2aca43f908
commit
bbf7421a92
@ -44,7 +44,10 @@ class RememberMeFactory implements SecurityFactoryInterface
|
||||
;
|
||||
|
||||
// remember me services
|
||||
if (isset($config['token_provider'])) {
|
||||
if (isset($config['service'])) {
|
||||
$templateId = $config['service'];
|
||||
$rememberMeServicesId = $templateId.'.'.$id;
|
||||
} elseif (isset($config['token_provider'])) {
|
||||
$templateId = 'security.authentication.rememberme.services.persistent';
|
||||
$rememberMeServicesId = $templateId.'.'.$id;
|
||||
} else {
|
||||
@ -135,6 +138,7 @@ class RememberMeFactory implements SecurityFactoryInterface
|
||||
|
||||
$builder
|
||||
->scalarNode('secret')->isRequired()->cannotBeEmpty()->end()
|
||||
->scalarNode('service')->end()
|
||||
->scalarNode('token_provider')->end()
|
||||
->arrayNode('user_providers')
|
||||
->beforeNormalization()
|
||||
|
Reference in New Issue
Block a user