mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
add info to configuration reference
This commit is contained in:
parent
d486676011
commit
77bbf711a6
@ -6,7 +6,8 @@ use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
|||||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the class that validates and merges configuration from your app/config files
|
* This is the class that validates and merges configuration from
|
||||||
|
* your app/config files
|
||||||
*
|
*
|
||||||
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
|
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
|
||||||
*/
|
*/
|
||||||
@ -23,7 +24,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
$classInfo = "The class which may receive custom fields";
|
$classInfo = "The class which may receive custom fields";
|
||||||
$nameInfo = "The name which will appears in the user interface. May be translatable";
|
$nameInfo = "The name which will appears in the user interface. May be translatable";
|
||||||
$optionsInfo = "Options available for custom fields groups referencing this class";
|
$optionsInfo = "Options available for custom fields groups referencing this class";
|
||||||
$prototypeTypeInfo = "The name of the form to append";
|
$optionsFormType = "The name of the form to append";
|
||||||
|
$optionsFormOptionsInfos = "the arguments to pass the form";
|
||||||
$customizableEntitiesInfo = "A list of customizable entities";
|
$customizableEntitiesInfo = "A list of customizable entities";
|
||||||
|
|
||||||
$rootNode
|
$rootNode
|
||||||
@ -43,9 +45,10 @@ class Configuration implements ConfigurationInterface
|
|||||||
->children()
|
->children()
|
||||||
->scalarNode('form_type')
|
->scalarNode('form_type')
|
||||||
->isRequired()
|
->isRequired()
|
||||||
->info($prototypeTypeInfo)
|
->info($optionsFormType)
|
||||||
->end()
|
->end()
|
||||||
->variableNode('form_options')
|
->variableNode('form_options')
|
||||||
|
->info($optionsFormOptionsInfos)
|
||||||
->defaultValue(array())
|
->defaultValue(array())
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user