Selaa lähdekoodia

Merge pull request #1674 from tiagojsag/show_dashboard_parameter

Resolve show_in_dashboard in parameter bag
Thomas 11 vuotta sitten
vanhempi
commit
2e75ad15a9

+ 1 - 1
DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

@@ -63,7 +63,7 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
 
 
                 $classes[$arguments[1]][] = $id;
                 $classes[$arguments[1]][] = $id;
 
 
-                $showInDashboard = (boolean) (isset($attributes['show_in_dashboard']) ? $attributes['show_in_dashboard'] : true);
+                $showInDashboard = (boolean) (isset($attributes['show_in_dashboard']) ?  $parameterBag->resolveValue($attributes['show_in_dashboard']) : true);
                 if (!$showInDashboard) {
                 if (!$showInDashboard) {
                     continue;
                     continue;
                 }
                 }