->
tag('kernel.reset',
['method' => 'disableUsageTracking'
]) ->
tag('kernel.reset',
['method' => 'setToken'
]) ->
alias(TokenStorageInterface::
class, 'security.token_storage'
) ->
set('security.untracked_token_storage', TokenStorage::
class) ->
set('security.helper', Security::
class) ->
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.'
)