framework/php-packages/testing/tests/extend.php
Alexander Skvortsov 148f810d96 Don't resolve routes early.
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.
2021-04-23 18:26:41 -04:00

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')
];