From 93aa3d77b53ebbd96258f6009e41bd967114a906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Wed, 13 Dec 2017 21:45:55 +0100 Subject: [PATCH] re-using symfony translator --- src/Locale/LocaleServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Locale/LocaleServiceProvider.php b/src/Locale/LocaleServiceProvider.php index 35b52eef7..73eb156f5 100644 --- a/src/Locale/LocaleServiceProvider.php +++ b/src/Locale/LocaleServiceProvider.php @@ -16,6 +16,7 @@ use Flarum\Foundation\AbstractServiceProvider; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Translation\Translator as TranslatorContract; use Symfony\Component\Translation\MessageSelector; +use Symfony\Component\Translation\TranslatorInterface; class LocaleServiceProvider extends AbstractServiceProvider { @@ -48,6 +49,7 @@ class LocaleServiceProvider extends AbstractServiceProvider }); $this->app->alias('translator', Translator::class); $this->app->alias('translator', TranslatorContract::class); + $this->app->alias('translator', TranslatorInterface::class); } private function getDefaultLocale(): string