1
0
mirror of https://github.com/flarum/core.git synced 2025-10-10 14:34:30 +02:00
Files
php-flarum/src/Install/Console/DefaultData.php
Toby Zerner 2edcbacccc Improve install command, add custom migrations system
Implemented our own migration repository + migrator (based on Laravel's
stuff) so that we can keep track of which migrations have been run for
core and per-extension. That way we can simple call the migrator to
upgrade core/extensions, and to uninstall extensions.
2015-08-14 12:47:59 +09:30

52 lines
1.6 KiB
PHP

<?php namespace Flarum\Install\Console;
class DefaultData implements ProvidesData
{
public function getDatabaseConfiguration()
{
return [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'flarum_console',
'username' => 'root',
'password' => 'root',
'prefix' => '',
];
}
public function getAdminUser()
{
return [
'username' => 'admin',
'password' => 'admin',
'email' => 'admin@example.com',
];
}
public function getSettings()
{
return [
'admin_url' => 'http://flarum.dev/admin',
'allow_post_editing' => 'reply',
'allow_renaming' => '10',
'allow_sign_up' => '1',
'api_url' => 'http://flarum.dev/api',
'base_url' => 'http://flarum.dev',
'custom_less' => '',
'default_locale' => 'en',
'default_route' => '/all',
'extensions_enabled' => '[]',
'forum_title' => 'Development Forum',
'forum_description' => '',
'mail_driver' => 'mail',
'mail_from' => 'noreply@flarum.dev',
'theme_colored_header' => '0',
'theme_dark_mode' => '0',
'theme_primary_color' => '#29415E',
'theme_secondary_color' => '#29415E',
'welcome_message' => 'This is beta software and you should not use it in production.',
'welcome_title' => 'Welcome to Development Forum',
];
}
}