From 0074f0c984fd457af6da738b64259b60a0a2b5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= <luceos@users.noreply.github.com> Date: Wed, 7 Apr 2021 18:29:32 +0200 Subject: [PATCH] Removes duplication of cache clearing (#2738) --- src/Locale/LocaleServiceProvider.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Locale/LocaleServiceProvider.php b/src/Locale/LocaleServiceProvider.php index 68149e595..0cc1d5f9a 100644 --- a/src/Locale/LocaleServiceProvider.php +++ b/src/Locale/LocaleServiceProvider.php @@ -10,25 +10,13 @@ namespace Flarum\Locale; use Flarum\Foundation\AbstractServiceProvider; -use Flarum\Foundation\Event\ClearingCache; use Flarum\Foundation\Paths; use Flarum\Settings\SettingsRepositoryInterface; -use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Translation\Translator as TranslatorContract; use Symfony\Contracts\Translation\TranslatorInterface; class LocaleServiceProvider extends AbstractServiceProvider { - /** - * {@inheritdoc} - */ - public function boot(Dispatcher $events) - { - $events->listen(ClearingCache::class, function () { - $this->container->make('flarum.locales')->clearCache(); - }); - } - /** * {@inheritdoc} */