From 553a49af561b3b697daff9b33e697dac264f3c53 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 31 Jan 2016 15:35:53 +1030 Subject: [PATCH] Fix fatal error "PHP Fatal error: Cannot use Symfony\Component\Translation\Translator as Translator because the name is already in use" --- framework/core/src/Locale/LocaleManager.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/framework/core/src/Locale/LocaleManager.php b/framework/core/src/Locale/LocaleManager.php index 0f37938af..1d34cc3ed 100644 --- a/framework/core/src/Locale/LocaleManager.php +++ b/framework/core/src/Locale/LocaleManager.php @@ -10,12 +10,12 @@ namespace Flarum\Locale; -use Symfony\Component\Translation\Translator; +use Symfony\Component\Translation\Translator as SymfonyTranslator; class LocaleManager { /** - * @var Translator + * @var SymfonyTranslator */ protected $translator; @@ -24,9 +24,9 @@ class LocaleManager protected $js = []; /** - * @param Translator $translator + * @param SymfonyTranslator $translator */ - public function __construct(Translator $translator) + public function __construct(SymfonyTranslator $translator) { $this->translator = $translator; } @@ -80,7 +80,7 @@ class LocaleManager } /** - * @return Translator + * @return SymfonyTranslator */ public function getTranslator() { @@ -88,9 +88,9 @@ class LocaleManager } /** - * @param Translator $translator + * @param SymfonyTranslator $translator */ - public function setTranslator($translator) + public function setTranslator(SymfonyTranslator $translator) { $this->translator = $translator; }