mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
default crud new function
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user