Allow to specify operations that also need to be set.

When the edit operation is set, the read permission is now set too.
This commit is contained in:
Jan Böhmer 2019-09-11 13:37:51 +02:00
parent 55983102ed
commit ac302ab16a
7 changed files with 163 additions and 1 deletions

View file

@ -61,7 +61,9 @@ class PermissionsConfiguration implements ConfigurationInterface
->children()
->scalarNode('name')->end()
->scalarNode('label')->end()
->scalarNode('bit')->end();
->scalarNode('bit')->end()
->arrayNode('alsoSet')
->beforeNormalization()->castToArray()->end()->scalarPrototype()->end();
return $treeBuilder;
}