From d068c09200e0512dad956687ea0a7268448dbf9a Mon Sep 17 00:00:00 2001 From: karaok Date: Fri, 6 Nov 2020 09:02:28 +0000 Subject: [PATCH] Use Symfony TranslatorInterface fix #33 --- src/Listener/SaveReactionsToDatabase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Listener/SaveReactionsToDatabase.php b/src/Listener/SaveReactionsToDatabase.php index 7c88f32..6d3ec54 100755 --- a/src/Listener/SaveReactionsToDatabase.php +++ b/src/Listener/SaveReactionsToDatabase.php @@ -25,7 +25,7 @@ use FoF\Reactions\Reaction; use Illuminate\Support\Arr; use Pusher; -use Symfony\Component\Translation\Translator; +use Symfony\Component\Translation\TranslatorInterface; class SaveReactionsToDatabase { @@ -35,7 +35,7 @@ class SaveReactionsToDatabase protected $settings; /** - * @var Translator + * @var TranslatorInterface */ protected $translator; @@ -44,7 +44,7 @@ class SaveReactionsToDatabase */ protected $extensions; - public function __construct(SettingsRepositoryInterface $settings, Translator $translator, ExtensionManager $extensions) + public function __construct(SettingsRepositoryInterface $settings, TranslatorInterface $translator, ExtensionManager $extensions) { $this->settings = $settings; $this->translator = $translator;