Skip to content

Commit

Permalink
FIX Skip expose calls when 'none' mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Garion Herman committed Sep 5, 2019
1 parent cf66429 commit 32ba6fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/VendorExposeTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public function process(IOInterface $io, array $libraries, $methodKey = null)
}
$method = $this->getMethod($methodKey);

if ($methodKey === VendorPlugin::METHOD_NONE) {
return;
}

// Update all modules
foreach ($libraries as $module) {
// Skip this module if no exposure required
Expand Down Expand Up @@ -138,8 +142,8 @@ protected function getMethod($key)
case JunctionMethod::NAME:
return new JunctionMethod();
case VendorPlugin::METHOD_NONE:
// 'none' is forced to an empty chain
return new ChainedMethod([]);
// 'none' is forced to an empty chain (and doesn't run anyway)
return new ChainedMethod();
case VendorPlugin::METHOD_AUTO:
// Default to safe-failover method
if (Platform::isWindows()) {
Expand Down

0 comments on commit 32ba6fd

Please sign in to comment.