Add empty locale extender to clear cache properly on enable/disable.

See https://github.com/flarum/core/pull/2020#issuecomment-616149583
This commit is contained in:
Alexander Skvortsov 2020-06-19 22:24:35 -04:00
parent 845c469d35
commit 1e64ac9376
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ return [
(new Extend\Model(Post::class))
->hasMany('flags', Flag::class, 'post_id'),
new Extend\Locales(__DIR__.'/locale'),
function (Dispatcher $events) {
$events->listen(Serializing::class, Listener\AddFlagsApiAttributes::class);

View File