mirror of
https://github.com/flarum/framework.git
synced 2025-02-11 16:27:48 +08:00
![Alexander Skvortsov](/assets/img/avatar_default.png)
In normal Flarum, extensions are only enabled during requests. Here, however, we enable some during boot. This resolves the FilesystemManager early, which resolves the Url Generator early. To fix this, we directly provide a filesystem disk for assets instead of getting it from the filesystem manager.
20 lines
453 B
PHP
20 lines
453 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of flarum/testing-tests.
|
|
*
|
|
* Copyright (c) 2021 .
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE.md
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Testing;
|
|
|
|
use Flarum\Extend;
|
|
|
|
return [
|
|
(new Extend\Settings)->serializeToForum('notARealSetting', 'not.a.real.setting'),
|
|
(new Extend\Frontend('forum'))->route('/added-by-extension', 'added-by-extension')
|
|
];
|