mirror of
https://github.com/flarum/core.git
synced 2025-07-18 15:21:16 +02:00
Fix installation
This commit is contained in:
@@ -246,7 +246,7 @@ class Migrator
|
|||||||
{
|
{
|
||||||
$file = implode('_', array_slice(explode('_', $file), 4));
|
$file = implode('_', array_slice(explode('_', $file), 4));
|
||||||
|
|
||||||
$class = ($extension ? Str::studly($extension) : 'Flarum\\Core') . '\\Migration\\';
|
$class = ($extension ? str_replace('-', '\\', $extension) : 'Flarum\\Core') . '\\Migration\\';
|
||||||
|
|
||||||
$class .= Str::studly($file);
|
$class .= Str::studly($file);
|
||||||
|
|
||||||
|
@@ -42,7 +42,7 @@ class InstallCommand extends AbstractCommand
|
|||||||
{
|
{
|
||||||
$this->application = $application;
|
$this->application = $application;
|
||||||
|
|
||||||
\Flarum\Console\Command\parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function configure()
|
protected function configure()
|
||||||
@@ -342,7 +342,7 @@ class InstallCommand extends AbstractCommand
|
|||||||
*/
|
*/
|
||||||
protected function getPrerequisites()
|
protected function getPrerequisites()
|
||||||
{
|
{
|
||||||
return $this->application->make('Flarum\Install\Prerequisites\Prerequisite');
|
return $this->application->make('Flarum\Install\Prerequisite\PrerequisiteInterface');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -36,5 +36,7 @@ class LocaleServiceProvider extends AbstractServiceProvider
|
|||||||
$this->app->alias('Flarum\Locale\LocaleManager', 'flarum.localeManager');
|
$this->app->alias('Flarum\Locale\LocaleManager', 'flarum.localeManager');
|
||||||
|
|
||||||
$this->app->instance('translator', new Translator);
|
$this->app->instance('translator', new Translator);
|
||||||
|
|
||||||
|
$this->app->alias('translator', 'Symfony\Component\Translation\TranslatorInterface');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user