From c106cb10f6448831e7abf59021143440e90f1cf5 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 19 Jun 2020 22:28:40 -0400 Subject: [PATCH] Add empty locale extender to clear cache properly on enable/disable. See https://github.com/flarum/core/pull/2020#issuecomment-616149583 --- extensions/pusher/extend.php | 2 ++ extensions/pusher/locale/.gitkeep | 0 2 files changed, 2 insertions(+) create mode 100644 extensions/pusher/locale/.gitkeep diff --git a/extensions/pusher/extend.php b/extensions/pusher/extend.php index 72bcae15b..497bc48c1 100644 --- a/extensions/pusher/extend.php +++ b/extensions/pusher/extend.php @@ -28,6 +28,8 @@ return [ (new Extend\Routes('api')) ->post('/pusher/auth', 'pusher.auth', AuthController::class), + new Extend\Locales(__DIR__.'/locale'), + function (Dispatcher $events, Container $container) { $container->bind(Pusher::class, function ($app) { $settings = $app->make(SettingsRepositoryInterface::class); diff --git a/extensions/pusher/locale/.gitkeep b/extensions/pusher/locale/.gitkeep new file mode 100644 index 000000000..e69de29bb