setWidgetFactories($widgetFactories); } public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder('chill_main'); $rootNode = $treeBuilder->getRootNode(); $rootNode ->children() // ... ->arrayNode('widgets') ->canBeDisabled() ->children() // we declare here all configuration for homepage place ->append($this->addWidgetsConfiguration('homepage', $this->containerBuilder)) ->end() // end of widgets/children ->end() // end of widgets ->end() // end of root/children ->end() // end of root ; return $treeBuilder; } }