$this->factories =
$factories;
$this->userProviderFactories =
$userProviderFactories;
} /**
* Generates the configuration tree builder.
*/
public function getConfigTreeBuilder(): TreeBuilder
{ $tb =
new TreeBuilder('security'
);
$rootNode =
$tb->
getRootNode();
$rootNode ->
children() ->
scalarNode('access_denied_url'
)->
defaultNull()->
example('/foo/error403'
)->
end() ->
enumNode('session_fixation_strategy'
) ->
values([SessionAuthenticationStrategy::NONE, SessionAuthenticationStrategy::MIGRATE, SessionAuthenticationStrategy::INVALIDATE
]) ->
defaultValue(SessionAuthenticationStrategy::MIGRATE
) ->
end() ->
booleanNode('hide_user_not_found'
)->
defaultTrue()->
end() ->
booleanNode('erase_credentials'
)->
defaultTrue()->
end() ->
booleanNode('enable_authenticator_manager'
)->
setDeprecated('symfony/security-bundle', '6.2', 'The "%node%" option at "%path%" is deprecated.'
)->
defaultTrue()->
end()