Fixed the default value of the access denied url
The custom error page is now disabled by default as this would throw an exception if the /access_denied url does not match a route. This commit also remove the old parameter for this url which is not used anymore in the code. Moved the default value to the Configuration class
This commit is contained in:
parent
a5cfc2207c
commit
556305b4ac
@ -49,7 +49,7 @@ class Configuration
|
||||
$rootNode = $tb->root('security:config', 'array');
|
||||
|
||||
$rootNode
|
||||
->scalarNode('access_denied_url')->end()
|
||||
->scalarNode('access_denied_url')->defaultNull()->end()
|
||||
->scalarNode('session_fixation_strategy')->cannotBeEmpty()->defaultValue('migrate')->end()
|
||||
;
|
||||
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
<parameter key="security.account_checker.class">Symfony\Component\Security\Core\User\AccountChecker</parameter>
|
||||
|
||||
<parameter key="security.access_denied.url">null</parameter>
|
||||
|
||||
<parameter key="security.encoder_factory.generic.class">Symfony\Component\Security\Core\Encoder\EncoderFactory</parameter>
|
||||
<parameter key="security.encoder.digest.class">Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder</parameter>
|
||||
<parameter key="security.encoder.plain.class">Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder</parameter>
|
||||
@ -32,8 +30,6 @@
|
||||
<parameter key="security.access.decision_manager.allow_if_all_abstain">false</parameter>
|
||||
<parameter key="security.access.decision_manager.allow_if_equal_granted_denied">true</parameter>
|
||||
|
||||
<parameter key="security.access.denied_url">/access_denied</parameter>
|
||||
|
||||
<parameter key="security.access.simple_role_voter.class">Symfony\Component\Security\Core\Authorization\Voter\RoleVoter</parameter>
|
||||
<parameter key="security.access.authenticated_voter.class">Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter</parameter>
|
||||
<parameter key="security.access.role_hierarchy_voter.class">Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter</parameter>
|
||||
|
Reference in New Issue
Block a user