Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m32s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m11s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m55s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m30s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m30s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m3s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Dashboard\Widgets;
|
|
use App\Plugins\Hooks;
|
|
use App\Plugins\PluginManager;
|
|
use App\Plugins\PluginState;
|
|
use App\Profile\ProfilePanels;
|
|
use App\Profile\ProfileSections;
|
|
use App\Support\Abilities;
|
|
use App\Support\Navigation;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
/**
|
|
* Lädt die Plugins. Muss vor den Panel-Providern registriert sein, damit
|
|
* Plugins ihre Admin-Seiten beitragen können.
|
|
*/
|
|
class PluginServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(Hooks::class);
|
|
$this->app->singleton(PluginState::class);
|
|
$this->app->singleton(PluginManager::class);
|
|
$this->app->singleton(Navigation::class);
|
|
$this->app->singleton(Widgets::class);
|
|
$this->app->singleton(Abilities::class);
|
|
$this->app->singleton(ProfileSections::class);
|
|
$this->app->singleton(ProfilePanels::class);
|
|
|
|
$this->app->make(PluginManager::class)->registerAll();
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
$this->app->make(PluginManager::class)->bootAll();
|
|
}
|
|
}
|