add doublemetaphone function and config to enable-disable usage of double metaphone

This commit is contained in:
2013-12-01 22:53:37 +01:00
parent 82f1aeee19
commit 44d8236f21
3 changed files with 32 additions and 6 deletions

View File

@@ -21,6 +21,9 @@ class CLChillPersonExtension extends Extension
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$container->setParameter('cl_chill_person.search.use_double_metaphone',
$config['search']['use_double_metaphone']);
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');