Use new extenders for bootstrapping

This commit is contained in:
Franz Liedke 2018-01-02 22:00:47 +01:00
parent b65c8a278a
commit ebbcdac1f7

View File

@ -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__)
];