mirror of
https://github.com/flarum/core.git
synced 2025-08-16 05:14:20 +02:00
Use new extenders for bootstrapping
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Flarum\Event\ConfigureLocales;
|
/*
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
* This file is part of Flarum.
|
||||||
|
*
|
||||||
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
return function (Dispatcher $events) {
|
use Flarum\Extend;
|
||||||
$events->listen(ConfigureLocales::class, function (ConfigureLocales $event) {
|
|
||||||
$event->loadLanguagePackFrom(__DIR__);
|
return [
|
||||||
});
|
new Extend\Locale(__DIR__)
|
||||||
};
|
];
|
||||||
|
Reference in New Issue
Block a user