-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlugin.php
More file actions
31 lines (25 loc) · 782 Bytes
/
Plugin.php
File metadata and controls
31 lines (25 loc) · 782 Bytes
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
<?php
declare(strict_types=1);
namespace Vdlp\Sitemap;
use Illuminate\Contracts\Events\Dispatcher;
use System\Classes\PluginBase;
use Vdlp\Sitemap\Classes\EventSubscribers\SitemapSubscriber;
final class Plugin extends PluginBase
{
public function pluginDetails(): array
{
return [
'name' => 'Sitemap',
'description' => 'A sitemap.xml generator for October CMS.',
'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));
}
}