mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 19:22:11 +08:00
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:
parent
845c469d35
commit
1e64ac9376
@ -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);
|
||||
|
||||
|
0
extensions/flags/locale/.gitkeep
Normal file
0
extensions/flags/locale/.gitkeep
Normal file
Loading…
x
Reference in New Issue
Block a user