mirror of
https://github.com/flarum/framework.git
synced 2025-02-17 01:12:45 +08:00
Use new extenders for bootstrapping
This commit is contained in:
parent
b65c8a278a
commit
ebbcdac1f7
|
@ -1,10 +1,16 @@
|
|||
<?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) {
|
||||
$events->listen(ConfigureLocales::class, function (ConfigureLocales $event) {
|
||||
$event->loadLanguagePackFrom(__DIR__);
|
||||
});
|
||||
};
|
||||
use Flarum\Extend;
|
||||
|
||||
return [
|
||||
new Extend\Locale(__DIR__)
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user