[SecurityBundle] added configuration info
This commit is contained in:
parent
2f8ad93db8
commit
fa32885ea3
@ -57,8 +57,8 @@ class MainConfiguration implements ConfigurationInterface
|
|||||||
|
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('access_denied_url')->defaultNull()->end()
|
->scalarNode('access_denied_url')->defaultNull()->setExample('/foo/error403')->end()
|
||||||
->scalarNode('session_fixation_strategy')->cannotBeEmpty()->defaultValue('migrate')->end()
|
->scalarNode('session_fixation_strategy')->cannotBeEmpty()->setInfo('strategy can be: none, migrate, invalidate')->defaultValue('migrate')->end()
|
||||||
->booleanNode('hide_user_not_found')->defaultTrue()->end()
|
->booleanNode('hide_user_not_found')->defaultTrue()->end()
|
||||||
->booleanNode('always_authenticate_before_granting')->defaultFalse()->end()
|
->booleanNode('always_authenticate_before_granting')->defaultFalse()->end()
|
||||||
->booleanNode('erase_credentials')->defaultTrue()->end()
|
->booleanNode('erase_credentials')->defaultTrue()->end()
|
||||||
@ -89,7 +89,7 @@ class MainConfiguration implements ConfigurationInterface
|
|||||||
->children()
|
->children()
|
||||||
->arrayNode('acl')
|
->arrayNode('acl')
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('connection')->end()
|
->scalarNode('connection')->setInfo('any name configured in doctrine.dbal section')->end()
|
||||||
->arrayNode('cache')
|
->arrayNode('cache')
|
||||||
->addDefaultsIfNotSet()
|
->addDefaultsIfNotSet()
|
||||||
->children()
|
->children()
|
||||||
@ -290,6 +290,16 @@ class MainConfiguration implements ConfigurationInterface
|
|||||||
->fixXmlConfig('provider')
|
->fixXmlConfig('provider')
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('providers')
|
->arrayNode('providers')
|
||||||
|
->setExample(array(
|
||||||
|
'memory' => array(
|
||||||
|
'name' => 'memory',
|
||||||
|
'users' => array(
|
||||||
|
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER'),
|
||||||
|
'bar' => array('password' => 'bar', 'roles' => '[ROLE_USER, ROLE_ADMIN]')
|
||||||
|
)
|
||||||
|
),
|
||||||
|
'entity' => array('entity' => array('class' => 'SecurityBundle:User', 'property' => 'username'))
|
||||||
|
))
|
||||||
->disallowNewKeysInSubsequentConfigs()
|
->disallowNewKeysInSubsequentConfigs()
|
||||||
->isRequired()
|
->isRequired()
|
||||||
->requiresAtLeastOneElement()
|
->requiresAtLeastOneElement()
|
||||||
@ -340,6 +350,14 @@ class MainConfiguration implements ConfigurationInterface
|
|||||||
->fixXmlConfig('encoder')
|
->fixXmlConfig('encoder')
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('encoders')
|
->arrayNode('encoders')
|
||||||
|
->setExample(array(
|
||||||
|
'Acme\DemoBundle\Entity\User1' => 'sha512',
|
||||||
|
'Acme\DemoBundle\Entity\User2' => array(
|
||||||
|
'algorithm' => 'sha512',
|
||||||
|
'encode_as_base64' => 'true',
|
||||||
|
'iterations'=> 5000
|
||||||
|
)
|
||||||
|
))
|
||||||
->requiresAtLeastOneElement()
|
->requiresAtLeastOneElement()
|
||||||
->useAttributeAsKey('class')
|
->useAttributeAsKey('class')
|
||||||
->prototype('array')
|
->prototype('array')
|
||||||
|
Reference in New Issue
Block a user