refs #265 add a first test + consistency of parameters

This commit is contained in:
2014-11-04 17:03:15 +01:00
parent b914229c11
commit b826d8e132
4 changed files with 50 additions and 5 deletions

View File

@@ -26,10 +26,11 @@ class ChillCustomFieldsExtension extends Extension
$loader->load('services.yml');
//add at least a blank array at 'customizable_entities' options
$customizable_entities = (isset($config['customizables_entities'])
&& count($config['customizables_entities']) > 0)
? $config['customizables_entities'] : array();
//$customizable_entities = (isset($config['customizables_entities'])
// && $config['customizables_entities'] !== FALSE)
// ? $config['customizables_entities'] : array();
$container->setParameter('chill_custom_fields.customizable_entities', $customizable_entities);
$container->setParameter('chill_custom_fields.customizables_entities',
$config['customizables_entities']);
}
}