mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-03 10:30:51 +08:00
- Add AnyTLS protocol support - Add system logs viewing in admin panel - Refactor client subscription delivery code - Refactor hook mechanism - Add plugin support for Shadowsocks protocol - Add CSV export option for batch user creation - Fix mobile admin login page width display issue
29 lines
707 B
PHP
29 lines
707 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\Plugin;
|
|
use App\Services\Plugin\HookManager;
|
|
use App\Services\Plugin\PluginManager;
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Log;
|
|
use Laravel\Octane\Events\WorkerStarting;
|
|
|
|
class PluginServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->scoped(PluginManager::class, function ($app) {
|
|
return new PluginManager();
|
|
});
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
if (!file_exists(base_path('plugins'))) {
|
|
mkdir(base_path('plugins'), 0755, true);
|
|
}
|
|
}
|
|
} |