mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +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:
@@ -29,6 +29,8 @@ return [
|
|||||||
(new Extend\Model(Post::class))
|
(new Extend\Model(Post::class))
|
||||||
->belongsToMany('likes', User::class, 'post_likes', 'post_id', 'user_id'),
|
->belongsToMany('likes', User::class, 'post_likes', 'post_id', 'user_id'),
|
||||||
|
|
||||||
|
new Extend\Locales(__DIR__ . '/locale'),
|
||||||
|
|
||||||
function (Dispatcher $events) {
|
function (Dispatcher $events) {
|
||||||
$events->subscribe(Listener\AddPostLikesRelationship::class);
|
$events->subscribe(Listener\AddPostLikesRelationship::class);
|
||||||
$events->subscribe(Listener\SaveLikesToDatabase::class);
|
$events->subscribe(Listener\SaveLikesToDatabase::class);
|
||||||
|
0
extensions/likes/locale/.gitkeep
Normal file
0
extensions/likes/locale/.gitkeep
Normal file
Reference in New Issue
Block a user