-
Notifications
You must be signed in to change notification settings - Fork 3
/
Plugin.php
35 lines (28 loc) · 884 Bytes
/
Plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
declare(strict_types=1);
namespace Vdlp\SitemapGenerators;
use Illuminate\Contracts\Events\Dispatcher;
use System\Classes\PluginBase;
use Vdlp\SitemapGenerators\Classes\EventSubscribers\SitemapSubscriber;
final class Plugin extends PluginBase
{
public $require = [
'Vdlp.Sitemap',
];
public function pluginDetails(): array
{
return [
'name' => 'Sitemap Generators',
'description' => 'Provides Sitemap Generators for the Vdlp.Sitemap plugin',
'author' => 'Van der Let & Partners',
'icon' => 'icon-leaf',
];
}
public function register(): void
{
$this->app->register(ServiceProvider::class);
/** @var Dispatcher $events */
$events = $this->app->make(Dispatcher::class);
$events->subscribe($this->app->make(SitemapSubscriber::class));
}
}