mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
only require composer packages when plugin should be loaded
This commit is contained in:
parent
4e10daa790
commit
aa8bbaf928
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user