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

@@ -36,7 +36,7 @@ use Illuminate\Filesystem\Filesystem;
use Illuminate\Validation\Factory;
use PDO;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Translation\TranslatorInterface;
use Illuminate\Contracts\Translation\Translator;
class InstallCommand extends AbstractCommand
{
@@ -409,7 +409,7 @@ class InstallCommand extends AbstractCommand
*/
protected function getValidator()
{
return new Factory($this->application->make(TranslatorInterface::class));
return new Factory($this->application->make(Translator::class));
}
protected function showErrors($errors)