mirror of
https://github.com/flarum/core.git
synced 2025-10-19 18:56:44 +02:00
Redo installer
This commit is contained in:
25
src/Install/Console/DefaultData.php
Normal file
25
src/Install/Console/DefaultData.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php namespace Flarum\Install\Console;
|
||||
|
||||
class DefaultData implements ProvidesData
|
||||
{
|
||||
public function getDatabaseConfiguration()
|
||||
{
|
||||
return [
|
||||
'driver' => 'mysql',
|
||||
'host' => 'localhost',
|
||||
'database' => 'flarum',
|
||||
'username' => 'root',
|
||||
'password' => 'root',
|
||||
'prefix' => '',
|
||||
];
|
||||
}
|
||||
|
||||
public function getAdminUser()
|
||||
{
|
||||
return [
|
||||
'username' => 'admin',
|
||||
'password' => 'admin',
|
||||
'email' => 'admin@example.com',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user