Removes duplication of cache clearing (#2738)

This commit is contained in:
Daniël Klabbers 2021-04-07 18:29:32 +02:00 committed by GitHub
parent 54155dbe1e
commit cedee652db

View File

@ -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}
*/