ソースを参照

revert : add show_in_dashboard attribute in services declaration

Charley Maillot 13 年 前
コミット
1f1bbf5994

+ 5 - 0
DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

@@ -63,6 +63,11 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
             $admins[] = $id;
             $admins[] = $id;
             $classes[$class] = $id;
             $classes[$class] = $id;
 
 
+            $showInDashBord = (boolean)(isset($attributes[0]['show_in_dashboard']) ? $attributes[0]['show_in_dashboard'] : true);
+            if (!$showInDashBord) {
+                continue;
+            }
+
             $group_name = isset($attributes[0]['group']) ? $attributes[0]['group'] : 'default';
             $group_name = isset($attributes[0]['group']) ? $attributes[0]['group'] : 'default';
 
 
             if (!isset($groupDefaults[$group_name])) {
             if (!isset($groupDefaults[$group_name])) {