mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +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:
@@ -28,6 +28,8 @@ return [
|
|||||||
(new Extend\Routes('api'))
|
(new Extend\Routes('api'))
|
||||||
->post('/pusher/auth', 'pusher.auth', AuthController::class),
|
->post('/pusher/auth', 'pusher.auth', AuthController::class),
|
||||||
|
|
||||||
|
new Extend\Locales(__DIR__.'/locale'),
|
||||||
|
|
||||||
function (Dispatcher $events, Container $container) {
|
function (Dispatcher $events, Container $container) {
|
||||||
$container->bind(Pusher::class, function ($app) {
|
$container->bind(Pusher::class, function ($app) {
|
||||||
$settings = $app->make(SettingsRepositoryInterface::class);
|
$settings = $app->make(SettingsRepositoryInterface::class);
|
||||||
|
0
extensions/pusher/locale/.gitkeep
Normal file
0
extensions/pusher/locale/.gitkeep
Normal file
Reference in New Issue
Block a user