1
0
mirror of https://github.com/flarum/core.git synced 2025-10-20 11:18:28 +02:00

Change base URL etc. in config.php file

This commit is contained in:
Franz Liedke
2015-08-27 00:47:54 +02:00
parent 49f20995b2
commit 9ec54ad892
10 changed files with 46 additions and 17 deletions

View File

@@ -21,6 +21,8 @@ class DefaultData implements ProvidesData
'prefix' => '',
];
protected $baseUrl = 'http://flarum.dev';
protected $adminUser = [
'username' => 'admin',
'password' => 'admin',
@@ -28,12 +30,9 @@ class DefaultData implements ProvidesData
];
protected $settings = [
'admin_url' => 'http://flarum.dev/admin',
'allow_post_editing' => 'reply',
'allow_renaming' => '10',
'allow_sign_up' => '1',
'api_url' => 'http://flarum.dev/api.php',
'base_url' => 'http://flarum.dev',
'custom_less' => '',
'default_locale' => 'en',
'default_route' => '/all',
@@ -60,6 +59,16 @@ class DefaultData implements ProvidesData
$this->databaseConfiguration = $databaseConfiguration;
}
public function getBaseUrl()
{
return $this->baseUrl;
}
public function setBaseUrl($baseUrl)
{
$this->baseUrl = $baseUrl;
}
public function getAdminUser()
{
return $this->adminUser;