mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Cleanup small things in installer
This commit is contained in:
parent
e2bb399db9
commit
dae8e617ae
|
@ -206,7 +206,6 @@ class InstallCommand extends Command
|
|||
protected function createAdminUser()
|
||||
{
|
||||
$admin = $this->dataSource->getAdminUser();
|
||||
$db = $this->getDatabaseConnection();
|
||||
|
||||
$this->info('Creating admin user '.$admin['username']);
|
||||
|
||||
|
@ -236,12 +235,4 @@ class InstallCommand extends Command
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\ConnectionInterface
|
||||
*/
|
||||
protected function getDatabaseConnection()
|
||||
{
|
||||
return $this->container->make('Illuminate\Database\ConnectionInterface');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?php namespace Flarum\Install;
|
||||
|
||||
use Flarum\Http\RouteCollection;
|
||||
use Flarum\Http\UrlGenerator;
|
||||
use Flarum\Support\ServiceProvider;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user