mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
sf4, adding require symfony/templating + fix treebuilder depreciation
This commit is contained in:
parent
2ed1de8629
commit
95682734dd
@ -13,8 +13,8 @@ class ChillPersonBundle extends Bundle
|
|||||||
{
|
{
|
||||||
parent::build($container);
|
parent::build($container);
|
||||||
|
|
||||||
//$container->getExtension('chill_main')
|
$container->getExtension('chill_main')
|
||||||
// ->addWidgetFactory(new PersonListWidgetFactory());
|
->addWidgetFactory(new PersonListWidgetFactory());
|
||||||
|
|
||||||
$container->addCompilerPass(new AccompanyingPeriodTimelineCompilerPass());
|
$container->addCompilerPass(new AccompanyingPeriodTimelineCompilerPass());
|
||||||
}
|
}
|
||||||
|
@ -136,17 +136,6 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
|||||||
$this->prependHomepageWidget($container);
|
$this->prependHomepageWidget($container);
|
||||||
$this->prependDoctrineDQL($container);
|
$this->prependDoctrineDQL($container);
|
||||||
$this->prependCruds($container);
|
$this->prependCruds($container);
|
||||||
|
|
||||||
$bundles = $container->getParameter('kernel.bundles');
|
|
||||||
//add ChillMain to assetic-enabled bundles
|
|
||||||
if (!isset($bundles['AsseticBundle'])) {
|
|
||||||
throw new MissingBundleException('AsseticBundle');
|
|
||||||
}
|
|
||||||
|
|
||||||
$asseticConfig = $container->getExtensionConfig('assetic');
|
|
||||||
$asseticConfig['bundles'][] = 'ChillPersonBundle';
|
|
||||||
$container->prependExtensionConfig('assetic',
|
|
||||||
array('bundles' => array('ChillPersonBundle')));
|
|
||||||
|
|
||||||
//add person_fields parameter as global
|
//add person_fields parameter as global
|
||||||
$chillPersonConfig = $container->getExtensionConfig($this->getAlias());
|
$chillPersonConfig = $container->getExtensionConfig($this->getAlias());
|
||||||
|
@ -21,8 +21,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
*/
|
*/
|
||||||
public function getConfigTreeBuilder()
|
public function getConfigTreeBuilder()
|
||||||
{
|
{
|
||||||
$treeBuilder = new TreeBuilder();
|
$treeBuilder = new TreeBuilder('cl_chill_person');
|
||||||
$rootNode = $treeBuilder->root('cl_chill_person');
|
$rootNode = $treeBuilder->getRootNode('cl_chill_person');
|
||||||
|
|
||||||
$rootNode
|
$rootNode
|
||||||
->canBeDisabled()
|
->canBeDisabled()
|
||||||
@ -115,8 +115,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
|
|
||||||
private function addFieldNode($key)
|
private function addFieldNode($key)
|
||||||
{
|
{
|
||||||
$tree = new TreeBuilder();
|
$tree = new TreeBuilder($key,'enum');
|
||||||
$node = $tree->root($key, 'enum');
|
$node = $tree->getRootNode($key);
|
||||||
|
|
||||||
switch($key) {
|
switch($key) {
|
||||||
case 'accompanying_period':
|
case 'accompanying_period':
|
||||||
@ -128,9 +128,9 @@ class Configuration implements ConfigurationInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$node
|
$node
|
||||||
->values(array('hidden', 'visible'))
|
->values(array('hidden', 'visible'))
|
||||||
->defaultValue('visible')
|
->defaultValue('visible')
|
||||||
->info($info)
|
->info($info)
|
||||||
->end();
|
->end();
|
||||||
|
|
||||||
return $node;
|
return $node;
|
||||||
|
@ -104,7 +104,6 @@ Person search results by phonenumber: Recherche de personnes par numéro de tél
|
|||||||
'Close accompanying period': 'Clôre la période'
|
'Close accompanying period': 'Clôre la période'
|
||||||
'Open accompanying period': 'Ouvrir la période'
|
'Open accompanying period': 'Ouvrir la période'
|
||||||
'Add an accompanying period in the past': Ajouter une période d'accompagnement dans le passé
|
'Add an accompanying period in the past': Ajouter une période d'accompagnement dans le passé
|
||||||
The period has been re-opened: La période a été ré-ouverte
|
|
||||||
Begin a new accompanying period: Commencer une nouvelle période d'accompagnement
|
Begin a new accompanying period: Commencer une nouvelle période d'accompagnement
|
||||||
Create an accompanying period: Créer une période d'accompagnement
|
Create an accompanying period: Créer une période d'accompagnement
|
||||||
'A period has been created.': Une période d'accompagnement a été créée.
|
'A period has been created.': Une période d'accompagnement a été créée.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user