Skip to content

Commit

Permalink
Merge pull request #32 from gouaille/translator-interface-patch
Browse files Browse the repository at this point in the history
[urgent] Loco should use the TranslatorInterface
  • Loading branch information
Nyholm committed Apr 18, 2016
2 parents f787049 + da3ea17 commit 18440e1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Service/Loco.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
use Happyr\TranslationBundle\Model\Message;
use Happyr\TranslationBundle\Translation\FilesystemUpdater;
use Symfony\Component\Filesystem\Exception\FileNotFoundException;
use Symfony\Component\Translation\DataCollectorTranslator;
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\TranslatorInterface;

/**
* @author Tobias Nyholm <[email protected]>
Expand All @@ -34,17 +33,17 @@ class Loco implements TranslationServiceInterface
private $filesystemService;

/**
* @var DataCollectorTranslator filesystemService
* @var TranslatorInterface filesystemService
*/
private $translator;

/**
* @param DataCollectorTranslator $translator
* @param TranslatorInterface $translator
* @param RequestManager $requestManager
* @param FilesystemUpdater $fs
* @param array $projects
*/
public function __construct(RequestManager $requestManager, FilesystemUpdater $fs, DataCollectorTranslator $translator, array $projects)
public function __construct(RequestManager $requestManager, FilesystemUpdater $fs, TranslatorInterface $translator, array $projects)
{
$this->translator = $translator;
$this->requestManager = $requestManager;
Expand Down

0 comments on commit 18440e1

Please sign in to comment.