mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02: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:
@@ -39,6 +39,8 @@ return [
|
|||||||
(new Extend\Model(Post::class))
|
(new Extend\Model(Post::class))
|
||||||
->hasMany('flags', Flag::class, 'post_id'),
|
->hasMany('flags', Flag::class, 'post_id'),
|
||||||
|
|
||||||
|
new Extend\Locales(__DIR__.'/locale'),
|
||||||
|
|
||||||
function (Dispatcher $events) {
|
function (Dispatcher $events) {
|
||||||
$events->listen(Serializing::class, Listener\AddFlagsApiAttributes::class);
|
$events->listen(Serializing::class, Listener\AddFlagsApiAttributes::class);
|
||||||
|
|
||||||
|
0
extensions/flags/locale/.gitkeep
Normal file
0
extensions/flags/locale/.gitkeep
Normal file
Reference in New Issue
Block a user