Fix installation

This commit is contained in:
Toby Zerner 2015-10-11 10:05:40 +10:30
parent f71db2d3c7
commit 47b5919480
3 changed files with 5 additions and 3 deletions

View File

@ -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);

View 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');
}
/**

View File

@ -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');
}
}