mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
Fix installation
This commit is contained in:
parent
f71db2d3c7
commit
47b5919480
|
@ -246,7 +246,7 @@ class Migrator
|
|||
{
|
||||
$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);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class InstallCommand extends AbstractCommand
|
|||
{
|
||||
$this->application = $application;
|
||||
|
||||
\Flarum\Console\Command\parent::__construct();
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function configure()
|
||||
|
@ -342,7 +342,7 @@ class InstallCommand extends AbstractCommand
|
|||
*/
|
||||
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->instance('translator', new Translator);
|
||||
|
||||
$this->app->alias('translator', 'Symfony\Component\Translation\TranslatorInterface');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user