mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 20:19:26 +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();
|
$plugins = Plugin::all();
|
||||||
foreach ($plugins as $plugin) {
|
foreach ($plugins as $plugin) {
|
||||||
|
if (!$plugin->shouldLoad()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Plugins::requireComposerPackages($plugin);
|
Plugins::requireComposerPackages($plugin);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user