Resolve show_in_dashboard in parameter bag
@@ -63,7 +63,7 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
$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) {
continue;
}