default crud new function

This commit is contained in:
2019-12-05 22:54:52 +01:00
parent f85462ac40
commit b402eabeb9
6 changed files with 83 additions and 14 deletions

View File

@@ -135,12 +135,12 @@ class Configuration implements ConfigurationInterface
->arrayPrototype()
->children()
->scalarNode('controller')
->defaultValue('')
->defaultNull()
->info('the method name to call in the route. Will be set to the action name if left empty.')
->example("'MyBundle\Controller\MyCrudController::action'")
->end()
->scalarNode('path')
->defaultValue('')
->defaultNull()
->info('the path that will be **appended** after the base path. Do not forget to add '
. 'arguments for the method. Will be set to the action name, including an `{id}` '
. 'parameter if left empty.')
@@ -150,6 +150,10 @@ class Configuration implements ConfigurationInterface
->ignoreExtraKeys(false)
->info('the requirements for the route. Will be set to `[ \'id\' => \'\d+\' ]` if left empty.')
->end()
->scalarNode('role')
->defaultNull()
->info('the role that will be required for this action. Override option `base_role`')
->end()
->end()
->end()
->end()