// Composer does the requirements checking if the plugin is managed by composer
// no need to do it manually
return;
} $this->shopwareProjectComposer =
$this->
getComposer($this->projectDir
);
$exceptionStack =
new RequirementExceptionStack();
$pluginDependencies =
$this->
getPluginDependencies($plugin);
$pluginDependencies =
$this->
validateComposerPackages($pluginDependencies,
$exceptionStack);
$pluginDependencies =
$this->
validateInstalledPlugins($context,
$plugin,
$pluginDependencies,
$exceptionStack);
$pluginDependencies =
$this->
validateShippedDependencies($plugin,
$pluginDependencies,
$exceptionStack);
$this->
addRemainingRequirementsAsException($pluginDependencies['require'
],
$exceptionStack);
$exceptionStack->
tryToThrow($method);
} /**
* resolveActiveDependants returns all active dependants of the given plugin.
*
* @param PluginEntity[] $dependants the plugins to check for a dependency on the given plugin
*
* @return PluginEntity[]
*/