allow users to recover password

This commit is contained in:
2018-08-17 13:32:08 +02:00
parent 5b1ba71a8a
commit 1fd6a4ed2c
22 changed files with 896 additions and 11 deletions

View File

@@ -79,6 +79,9 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
$container->setParameter('chill_main.pagination.item_per_page',
$config['pagination']['item_per_page']);
$container->setParameter('chill_main.notifications',
$config['notifications']);
// add the key 'widget' without the key 'enable'
$container->setParameter('chill_main.widgets',
isset($config['widgets']['homepage']) ?
@@ -100,6 +103,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
$loader->load('services/fixtures.yml');
$loader->load('services/menu.yml');
$loader->load('services/security.yml');
$loader->load('services/notification.yml');
}
public function getConfiguration(array $config, ContainerBuilder $container)

View File

@@ -67,6 +67,24 @@ class Configuration implements ConfigurationInterface
->end() // end of integer 'item_per_page'
->end() // end of children
->end() // end of pagination
->arrayNode('notifications')
->children()
->scalarNode('from_email')
->cannotBeEmpty()
->end()
->scalarNode('from_name')
->cannotBeEmpty()
->end()
->enumNode('scheme')
->cannotBeEmpty()
->values(['http', 'https'])
->defaultValue('https')
->end()
->scalarNode('host')
->cannotBeEmpty()
->end()
->end()
->end() // end of notifications
->arrayNode('widgets')
->canBeEnabled()
->canBeUnset()