mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
Adding TranslatableStringFormType.php
This commit is contained in:
@@ -23,8 +23,11 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
|
||||
$container->setParameter('cl_chill_main.installation_name',
|
||||
$config['installation_name']);
|
||||
$container->setParameter('chill_main.installation_name',
|
||||
$config['installation_name']);
|
||||
|
||||
$container->setParameter('chill_main.available_languages',
|
||||
$config['available_languages']);
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
|
@@ -21,12 +21,15 @@ class Configuration implements ConfigurationInterface
|
||||
$rootNode = $treeBuilder->root('cl_chill_main');
|
||||
|
||||
$rootNode
|
||||
->children()
|
||||
->scalarNode('installation_name')
|
||||
->cannotBeEmpty()
|
||||
->defaultValue('Chill')
|
||||
->end()
|
||||
->end();
|
||||
->children()
|
||||
->scalarNode('installation_name')
|
||||
->cannotBeEmpty()
|
||||
->defaultValue('Chill')
|
||||
->end()
|
||||
->arrayNode('available_languages')
|
||||
->prototype('scalar')->end()
|
||||
->end()
|
||||
->end();
|
||||
|
||||
return $treeBuilder;
|
||||
}
|
||||
|
Reference in New Issue
Block a user