소스 검색

revert : add show_in_dashboard attribute in services declaration

Charley Maillot 14 년 전
부모
커밋
1f1bbf5994
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

+ 5 - 0
DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

@@ -63,6 +63,11 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
             $admins[] = $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';
 
             if (!isset($groupDefaults[$group_name])) {