-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextend.php
40 lines (33 loc) · 1.91 KB
/
extend.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
36
37
38
39
40
<?php
/*
* This file is part of the flarum extension flarum-ext-post-notification.
*
* (c) Timotheus Pokorra <timotheus.pokorra@solidcharity.com>
*
* For the full copyright and license information, please view the license.md
* file that was distributed with this source code.
*/
namespace tpokorra\PostNotification;
use Flarum\Extend;
use Flarum\Settings\SettingsRepositoryInterface;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\View\Factory;
return [
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
(new Extend\Settings())
->serializeToForum('PostNotification.recipients.post_approval.to', 'PostNotification.recipients.post_approval.to')
->serializeToForum('PostNotification.recipients.new_discussion.to', 'PostNotification.recipients.new_discussion.to')
->serializeToForum('PostNotification.recipients.new_discussion.bcc', 'PostNotification.recipients.new_discussion.bcc')
->serializeToForum('PostNotification.recipients.new_post.to', 'PostNotification.recipients.new_post.to')
->serializeToForum('PostNotification.recipients.new_post.bcc', 'PostNotification.recipients.new_post.bcc')
->serializeToForum('PostNotification.recipients.revised_post.to', 'PostNotification.recipients.revised_post.to')
->serializeToForum('PostNotification.recipients.revised_post.bcc', 'PostNotification.recipients.revised_post.bcc')
->serializeToForum('PostNotification.post_approval', 'PostNotification.post_approval')
->serializeToForum('PostNotification.new_discussion', 'PostNotification.new_discussion')
->serializeToForum('PostNotification.new_post', 'PostNotification.new_post')
->serializeToForum('PostNotification.revised_post', 'PostNotification.revised_post'),
new Extend\Locales(__DIR__.'/resources/locale'),
(new Extend\Event())
->subscribe(Listeners\PostNotification::class),
];