mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
[wip] CRUD
This commit is contained in:
@@ -127,9 +127,32 @@ class Configuration implements ConfigurationInterface
|
||||
->scalarNode('base_role')->defaultNull()->end()
|
||||
->scalarNode('form_class')->defaultNull()->end()
|
||||
->arrayNode('actions')
|
||||
->scalarPrototype()->end()
|
||||
->defaultValue(['index', 'new', 'edit', 'show', 'delete'])
|
||||
->defaultValue([
|
||||
'edit' => [],
|
||||
'new' => []
|
||||
])
|
||||
->useAttributeAsKey('name')
|
||||
->arrayPrototype()
|
||||
->children()
|
||||
->scalarNode('controller')
|
||||
->defaultValue('')
|
||||
->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('')
|
||||
->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.')
|
||||
->example('/{id}/my-action')
|
||||
->end()
|
||||
->arrayNode('requirements')
|
||||
->ignoreExtraKeys(false)
|
||||
->info('the requirements for the route. Will be set to `[ \'id\' => \'\d+\' ]` if left empty.')
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
|
||||
|
Reference in New Issue
Block a user