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

@@ -13,7 +13,7 @@ namespace Flarum\Api\Serializer;
use Flarum\Group\Group;
use InvalidArgumentException;
use Symfony\Component\Translation\TranslatorInterface;
use Illuminate\Contracts\Translation\Translator;
class GroupSerializer extends AbstractSerializer
{
@@ -23,14 +23,14 @@ class GroupSerializer extends AbstractSerializer
protected $type = 'groups';
/**
* @var TranslatorInterface
* @var Translator
*/
private $translator;
/**
* @param TranslatorInterface $translator
* @param Translator $translator
*/
public function __construct(TranslatorInterface $translator)
public function __construct(Translator $translator)
{
$this->translator = $translator;
}