Adding phonenumber validation constraint

This commit is contained in:
2018-08-20 21:33:01 +02:00
parent 900a384597
commit af5375fc38
7 changed files with 330 additions and 1 deletions

View File

@@ -85,6 +85,9 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
$container->setParameter('chill_main.redis',
$config['redis']);
$container->setParameter('chill_main.phone_helper',
$config['phone_helper'] ?? []);
// add the key 'widget' without the key 'enable'
$container->setParameter('chill_main.widgets',
isset($config['widgets']['homepage']) ?
@@ -109,6 +112,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
$loader->load('services/notification.yml');
$loader->load('services/redis.yml');
$loader->load('services/command.yml');
$loader->load('services/phonenumber.yml');
}
public function getConfiguration(array $config, ContainerBuilder $container)