Skip to content

Commit

Permalink
Dump service when usgin drupal.generator as tag. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Jul 4, 2017
1 parent d69ffe4 commit b3a6161
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ExtenderManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public function addConfigFile($configFile)
*/
public function addServicesFile($servicesFile)
{
$consoleTags = [
'drupal.command',
'drupal.generator'
];
$servicesData = $this->parseData($servicesFile);
if ($this->isValidServicesData($servicesData)) {
foreach ($servicesData['services'] as $key => $definition) {
Expand All @@ -79,7 +83,7 @@ public function addServicesFile($servicesFile)
$bootstrap = null;
continue;
}
if ($tags['name'] != 'drupal.command') {
if (array_search($tags['name'], $consoleTags) === false) {
$bootstrap = null;
continue;
}
Expand Down

0 comments on commit b3a6161

Please sign in to comment.