flarum-msteams-webhook/extend.php

23 lines
573 B
PHP

<?php
declare(strict_types=1);
use Flarum\Extend;
use SbpJm\FlarumMSTeamsWebhook\Console\TestTeamsUserCommand;
use SbpJm\FlarumMSTeamsWebhook\Notification\TeamsNotificationDriver;
return [
new Extend\Locales(__DIR__ . '/locale'),
(new Extend\Frontend('admin'))
->js(__DIR__ . '/js/dist/admin.js'),
(new Extend\Frontend('forum'))
->js(__DIR__ . '/js/dist/forum.js'),
(new Extend\Console())
->command(TestTeamsUserCommand::class),
(new Extend\Notification())
->driver('teams', TeamsNotificationDriver::class, []),
];