File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -70,24 +70,26 @@ public function addServicesFile($servicesFile)
7070 $ servicesData = $ this ->parseData ($ servicesFile );
7171 if ($ this ->isValidServicesData ($ servicesData )) {
7272 foreach ($ servicesData ['services ' ] as $ key => $ definition ) {
73-
7473 if (!array_key_exists ('tags ' , $ definition )) {
7574 continue ;
7675 }
77-
7876 $ bootstrap = 'install ' ;
79-
8077 foreach ($ definition ['tags ' ] as $ tags ) {
8178 if (!array_key_exists ('name ' , $ tags )) {
79+ $ bootstrap = null ;
80+ continue ;
81+ }
82+ if ($ tags ['name ' ] != 'drupal.command ' ) {
83+ $ bootstrap = null ;
8284 continue ;
8385 }
84-
8586 if (array_key_exists ('bootstrap ' , $ tags )) {
8687 $ bootstrap = $ tags ['bootstrap ' ];
8788 }
8889 }
89-
90- $ this ->servicesData [$ bootstrap ]['services ' ][$ key ] = $ definition ;
90+ if ($ bootstrap ) {
91+ $ this ->servicesData [$ bootstrap ]['services ' ][$ key ] = $ definition ;
92+ }
9193 }
9294 }
9395 }
You can’t perform that action at this time.
0 commit comments