1
0
mirror of https://github.com/flarum/core.git synced 2025-08-16 13:24:11 +02:00

replaced the Symfony\Component\Translation\TranslationInterface with the Illuminate\Contracts\Translation\Translator, deprecating the Symfony version

This commit is contained in:
Daniel Klabbers
2017-11-27 10:42:16 +01:00
parent 7b2663e0bc
commit 642332ffe2
8 changed files with 25 additions and 27 deletions

View File

@@ -16,7 +16,6 @@ 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,7 +47,6 @@ class LocaleServiceProvider extends AbstractServiceProvider
return $translator;
});
$this->app->alias('translator', Translator::class);
$this->app->alias('translator', TranslatorInterface::class);
$this->app->alias('translator', TranslatorContract::class);
}