Skip to content

Commit b3a6161

Browse files
authored
Dump service when usgin drupal.generator as tag. (#14)
1 parent d69ffe4 commit b3a6161

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ExtenderManager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ public function addConfigFile($configFile)
6767
*/
6868
public function addServicesFile($servicesFile)
6969
{
70+
$consoleTags = [
71+
'drupal.command',
72+
'drupal.generator'
73+
];
7074
$servicesData = $this->parseData($servicesFile);
7175
if ($this->isValidServicesData($servicesData)) {
7276
foreach ($servicesData['services'] as $key => $definition) {
@@ -79,7 +83,7 @@ public function addServicesFile($servicesFile)
7983
$bootstrap = null;
8084
continue;
8185
}
82-
if ($tags['name'] != 'drupal.command') {
86+
if (array_search($tags['name'], $consoleTags) === false) {
8387
$bootstrap = null;
8488
continue;
8589
}

0 commit comments

Comments
 (0)