extend verändert

This commit is contained in:
JM 2026-05-06 16:22:25 +02:00
parent 06a4711c8f
commit ea1e02bba6
1 changed files with 15 additions and 21 deletions

View File

@ -2,28 +2,22 @@
declare(strict_types=1); declare(strict_types=1);
namespace SbpJm\FlarumMSTeamsWebhook\Job; use Flarum\Extend;
use SbpJm\FlarumMSTeamsWebhook\Console\TestTeamsUserCommand;
use SbpJm\FlarumMSTeamsWebhook\Notification\TeamsNotificationDriver;
use Flarum\Notification\Blueprint\BlueprintInterface; return [
use Flarum\User\User; new Extend\Locales(__DIR__ . '/locale'),
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use SbpJm\FlarumMSTeamsWebhook\Service\TeamsActivityNotifier;
class SendTeamsActivityNotificationJob implements ShouldQueue (new Extend\Frontend('admin'))
{ ->js(__DIR__ . '/js/dist/admin.js'),
use InteractsWithQueue;
use SerializesModels;
public function __construct( (new Extend\Frontend('forum'))
protected User $user, ->js(__DIR__ . '/js/dist/forum.js'),
protected BlueprintInterface $blueprint
) {
}
public function handle(TeamsActivityNotifier $notifier): void (new Extend\Console())
{ ->command(TestTeamsUserCommand::class),
$notifier->notify($this->user, $this->blueprint);
} (new Extend\Notification())
} ->driver('teams', TeamsNotificationDriver::class, []),
];