mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-07 05:49:42 +00:00
Configuration added for show concerned users number field in AsideActivity form
This commit is contained in:
@@ -120,3 +120,6 @@ chill_activity:
|
||||
-
|
||||
label: '5 hours'
|
||||
seconds: 18000
|
||||
|
||||
chill_aside_activity:
|
||||
show_concerned_users_count: true
|
||||
|
@@ -25,6 +25,7 @@ final class ChillAsideActivityExtension extends Extension implements PrependExte
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
|
||||
$container->setParameter('chill_aside_activity.form.time_duration', $config['form']['time_duration']);
|
||||
$container->setParameter('chill_aside_activity.show_concerned_users_count', $config['show_concerned_users_count']);
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||
$loader->load('services.yaml');
|
||||
|
@@ -141,6 +141,11 @@ class Configuration implements ConfigurationInterface
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->booleanNode('show_concerned_users_count')
|
||||
->defaultTrue()
|
||||
->info('Show the concerned users count field in aside activity forms and views')
|
||||
->end()
|
||||
->end();
|
||||
|
||||
return $treeBuilder;
|
||||
|
Reference in New Issue
Block a user