mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 18:43:49 +00:00
Fixing minor issue with widget api and removing homepage menu
This commit is contained in:
@@ -167,13 +167,18 @@ trait AddWidgetConfigurationTrait
|
||||
->info("the ordering of the widget. May be a number with decimal")
|
||||
->example("10.58")
|
||||
->end()
|
||||
->enumNode(WidgetsCompilerPass::WIDGET_CONFIG_ALIAS)
|
||||
->values($this->getWidgetAliasesbyPlace($place, $containerBuilder))
|
||||
->info("the widget alias (see config for your bundle)")
|
||||
->scalarNode(WidgetsCompilerPass::WIDGET_CONFIG_ALIAS)
|
||||
// this node is scalar: when the configuration is build, the
|
||||
// tagged services are not available. But when the config reference
|
||||
// is build, the services are avaialble => we add the possible aliases
|
||||
// in the info.
|
||||
->info("the widget alias (see your installed bundles config). "
|
||||
. "Possible values are (maybe incomplete) : ".
|
||||
\implode(", ", $this->getWidgetAliasesbyPlace($place, $containerBuilder)))
|
||||
->isRequired()
|
||||
->end()
|
||||
;
|
||||
|
||||
|
||||
// adding the possible config on each widget under the widget_alias
|
||||
foreach ($this->filterWidgetByPlace($place) as $factory) {
|
||||
$builder = new TreeBuilder();
|
||||
@@ -207,6 +212,10 @@ trait AddWidgetConfigurationTrait
|
||||
* get the all possible aliases for the given place. This method
|
||||
* search within service tags and widget factories
|
||||
*
|
||||
* **Note** that services are not available when the config is build: the whole
|
||||
* aliases will be checked in compiler pass, or when the command
|
||||
* `config:dump-reference` is runned.
|
||||
*
|
||||
* @param type $place
|
||||
* @param ContainerBuilder $containerBuilder
|
||||
* @return type
|
||||
@@ -219,7 +228,7 @@ trait AddWidgetConfigurationTrait
|
||||
foreach ($this->filterWidgetByPlace($place) as $factory) {
|
||||
$result[] = $factory->getWidgetAlias();
|
||||
}
|
||||
|
||||
|
||||
// append the aliases added without factory
|
||||
foreach ($containerBuilder
|
||||
->findTaggedServiceIds(WidgetsCompilerPass::WIDGET_SERVICE_TAG_NAME)
|
||||
|
Reference in New Issue
Block a user