1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 23:14:29 +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

@@ -20,7 +20,7 @@ use Flarum\User\Exception\PermissionDeniedException;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Mail\Message;
use Psr\Http\Message\ServerRequestInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Illuminate\Contracts\Translation\Translator;
use Zend\Diactoros\Response\EmptyResponse;
class SendConfirmationEmailController implements ControllerInterface
@@ -43,7 +43,7 @@ class SendConfirmationEmailController implements ControllerInterface
protected $url;
/**
* @var TranslatorInterface
* @var Translator
*/
protected $translator;
@@ -51,9 +51,9 @@ class SendConfirmationEmailController implements ControllerInterface
* @param \Flarum\Settings\SettingsRepositoryInterface $settings
* @param Mailer $mailer
* @param UrlGenerator $url
* @param TranslatorInterface $translator
* @param Translator $translator
*/
public function __construct(SettingsRepositoryInterface $settings, Mailer $mailer, UrlGenerator $url, TranslatorInterface $translator)
public function __construct(SettingsRepositoryInterface $settings, Mailer $mailer, UrlGenerator $url, Translator $translator)
{
$this->settings = $settings;
$this->mailer = $mailer;