-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextend.php
28 lines (24 loc) · 1.03 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
<?php
/*
* This file is part of fof/github-autolink.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FoF\GitHubAutolink;
use Flarum\Extend;
use s9e\TextFormatter\Configurator;
return [
(new Extend\Frontend('forum'))
->css(__DIR__.'/less/forum.less'),
(new Extend\Formatter())
->configure(function (Configurator $configurator) {
$configurator->plugins->set('GithubPullRequestAutolink', Plugins\GithubPullRequest\Configurator::class);
$configurator->plugins->set('GithubIssueAutolink', Plugins\GithubIssue\Configurator::class);
$configurator->plugins->set('GithubCommitAutolink', Plugins\GithubCommit\Configurator::class);
$configurator->plugins->set('GithubRepositoryAutolink', Plugins\GithubRepository\Configurator::class);
$configurator->plugins->set('GithubCompareAutolink', Plugins\GithubCompare\Configurator::class);
}),
];