mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Normalize Base URL during installation
- Fix base url when is appended with a script filename - Add default base url http://flarum.local when CLI wizard used - Remove some code duplication - Add minor improvement to the UX when CLI wizard used - Add tests - Extract base url normalisation into its own value object
This commit is contained in:
committed by
Daniël Klabbers
parent
3643e2010b
commit
1b74e43cb9
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
use Flarum\Install\AdminUser;
|
||||
use Flarum\Install\BaseUrl;
|
||||
use Flarum\Install\DatabaseConfig;
|
||||
use Flarum\Install\Installation;
|
||||
|
||||
@@ -46,7 +47,7 @@ $installation = new Installation(
|
||||
$pipeline = $installation
|
||||
->configPath('config.php')
|
||||
->debugMode(true)
|
||||
->baseUrl('http://localhost')
|
||||
->baseUrl(BaseUrl::fromString('http://localhost'))
|
||||
->databaseConfig(new DatabaseConfig(
|
||||
'mysql',
|
||||
env('DB_HOST', 'localhost'),
|
||||
|
Reference in New Issue
Block a user