Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Bryan Brioso committed Jul 8, 2020
2 parents 902d198 + 2ece6bf commit 61ebec8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Service/MelisModulesService.php
Expand Up @@ -253,10 +253,16 @@ public function getVendorModules()

$type = $package->type;
$extra = $package->extra ?? [];
$isMelisModule = true;
if (array_key_exists('melis-module', $extra)) {
$key = 'melis-module';
if (!$extra->$key)
$isMelisModule = false;
}

/** @var CompletePackage $package */
return $type === 'melisplatform-module' &&
array_key_exists('module-name', $extra);
array_key_exists('module-name', $extra) && $isMelisModule;
});

$modules = array_map(function ($package) {
Expand Down

0 comments on commit 61ebec8

Please sign in to comment.