mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 12:29:29 +01:00
revert change
not needed
This commit is contained in:
parent
d2e2346806
commit
7f74afcd6f
@ -4,24 +4,17 @@ namespace App\Console\Commands\Plugin;
|
|||||||
|
|
||||||
use App\Facades\Plugins;
|
use App\Facades\Plugins;
|
||||||
use App\Models\Plugin;
|
use App\Models\Plugin;
|
||||||
use App\Traits\Commands\RequiresDatabaseMigrations;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
class ComposerPluginsCommand extends Command
|
class ComposerPluginsCommand extends Command
|
||||||
{
|
{
|
||||||
use RequiresDatabaseMigrations;
|
|
||||||
|
|
||||||
protected $signature = 'p:plugin:composer';
|
protected $signature = 'p:plugin:composer';
|
||||||
|
|
||||||
protected $description = 'Runs "composer require" on all installed plugins.';
|
protected $description = 'Runs "composer require" on all installed plugins.';
|
||||||
|
|
||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
if (!$this->hasCompletedMigrations()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$plugins = Plugin::all();
|
$plugins = Plugin::all();
|
||||||
foreach ($plugins as $plugin) {
|
foreach ($plugins as $plugin) {
|
||||||
if (!$plugin->shouldLoad()) {
|
if (!$plugin->shouldLoad()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user