mirror of
https://github.com/flarum/core.git
synced 2025-02-25 19:53:48 +01: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()
|
protected function createAdminUser()
|
||||||
{
|
{
|
||||||
$admin = $this->dataSource->getAdminUser();
|
$admin = $this->dataSource->getAdminUser();
|
||||||
$db = $this->getDatabaseConnection();
|
|
||||||
|
|
||||||
$this->info('Creating admin user '.$admin['username']);
|
$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;
|
<?php namespace Flarum\Install;
|
||||||
|
|
||||||
use Flarum\Http\RouteCollection;
|
use Flarum\Http\RouteCollection;
|
||||||
use Flarum\Http\UrlGenerator;
|
|
||||||
use Flarum\Support\ServiceProvider;
|
use Flarum\Support\ServiceProvider;
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user