Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAccessDecisionStrategies example
->
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
(
)
->
arrayNode
(
'access_decision_manager'
)
->
addDefaultsIfNotSet
(
)
->
children
(
)
->
enumNode
(
'strategy'
)
->
values
(
$this
->
getAccessDecisionStrategies
(
)
)
->
end
(
)
->
scalarNode
(
'service'
)
->
end
(
)
->
scalarNode
(
'strategy_service'
)
->
end
(
)
->
booleanNode
(
'allow_if_all_abstain'
)
->
defaultFalse
(
)
->
end
(
)
->
booleanNode
(
'allow_if_equal_granted_denied'
)
->
defaultTrue
(
)
->
end
(
)
->
end
(
)
->
validate
(
)
->
ifTrue
(
fn
(
$v
)
=>
isset
(
$v
[
'strategy'
]
,
$v
[
'service'
]
)
)
->
thenInvalid
(
'"strategy" and "service" cannot be used together.'
)
->
end
(
)
->
validate
(
)