mirror of
https://github.com/usetrmnl/larapaper.git
synced 2026-08-13 14:28:54 -07:00
24 lines
564 B
PHP
24 lines
564 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Plugins\ImageWebhookPlugin;
|
|
use App\Plugins\PluginRegistry;
|
|
use App\Plugins\ScreenshotPlugin;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class PluginServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(PluginRegistry::class, function (): PluginRegistry {
|
|
$registry = new PluginRegistry;
|
|
|
|
$registry->register(new ImageWebhookPlugin);
|
|
$registry->register(new ScreenshotPlugin);
|
|
|
|
return $registry;
|
|
});
|
|
}
|
|
}
|