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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user