@@ -58,7 +58,7 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
$admins[] = $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) {
continue;
}