->
args([ service_locator([ 'security.token_storage' =>
service('security.token_storage'
),
'security.authorization_checker' =>
service('security.authorization_checker'
),
'security.authenticator.managers_locator' =>
service('security.authenticator.managers_locator'
)->
ignoreOnInvalid(),
'request_stack' =>
service('request_stack'
),
'security.firewall.map' =>
service('security.firewall.map'
),
'security.user_checker' =>
service('security.user_checker'
),
'security.firewall.event_dispatcher_locator' =>
service('security.firewall.event_dispatcher_locator'
),
'security.csrf.token_manager' =>
service('security.csrf.token_manager'
)->
ignoreOnInvalid(),
]),
abstract_arg('authenticators'
),
]) ->
alias(Security::
class, 'security.helper'
) ->
alias(LegacySecurity::
class, 'security.helper'
) ->
deprecate('symfony/security-bundle', '6.2', 'The "%alias_id%" service alias is deprecated, use "'.Security::
class.'" instead.'
) ->
set('security.user_value_resolver', UserValueResolver::
class) ->
args([ service('security.token_storage'
),
]) ->
tag('controller.argument_value_resolver',
['priority' => 120, 'name' => UserValueResolver::
class])