Skip to content

Commit

Permalink
Getting melis modules from vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Bryan Brioso committed May 20, 2020
1 parent a24d3ed commit 2ece6bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Service/MelisModulesService.php
Original file line number Diff line number Diff line change
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 2ece6bf

Please sign in to comment.