only require composer packages when plugin should be loaded

This commit is contained in:
Boy132 2025-11-05 11:37:36 +01:00
parent 4e10daa790
commit aa8bbaf928

View File

@ -17,6 +17,10 @@ class ComposerPluginsCommand extends Command
{
$plugins = Plugin::all();
foreach ($plugins as $plugin) {
if (!$plugin->shouldLoad()) {
continue;
}
try {
Plugins::requireComposerPackages($plugin);
} catch (Exception $exception) {