mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-05 07:19:49 +00:00
Rename configuration parameter for document kinds
This commit is contained in:
parent
8209990437
commit
e2426ba1d8
@ -194,8 +194,8 @@ class ChillMainExtension extends Extension implements
|
|||||||
);
|
);
|
||||||
|
|
||||||
$container->setParameter(
|
$container->setParameter(
|
||||||
'chill_main.document_type_choices',
|
'chill_main.id_document_kinds',
|
||||||
$config['document_type_choices']
|
$config['id_document_kinds']
|
||||||
);
|
);
|
||||||
|
|
||||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||||
|
@ -151,7 +151,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder))
|
->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder))
|
||||||
->end() // end of widgets/children
|
->end() // end of widgets/children
|
||||||
->end() // end of widgets
|
->end() // end of widgets
|
||||||
->arrayNode('document_type_choices')->defaultValue([])
|
->arrayNode('id_document_kinds')->defaultValue([])
|
||||||
->arrayPrototype()
|
->arrayPrototype()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('key')->isRequired()->cannotBeEmpty()
|
->scalarNode('key')->isRequired()->cannotBeEmpty()
|
||||||
|
@ -27,7 +27,7 @@ class WorkflowSignatureMetadataType extends AbstractType
|
|||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
$documentTypeChoices = $this->parameterBag->get('chill_main.document_type_choices');
|
$documentTypeChoices = $this->parameterBag->get('chill_main.id_document_kinds');
|
||||||
$locale = $this->requestStack->getCurrentRequest()->getLocale();
|
$locale = $this->requestStack->getCurrentRequest()->getLocale();
|
||||||
|
|
||||||
$choices = [];
|
$choices = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user