We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd740b4 commit dfebb5cCopy full SHA for dfebb5c
flarum
@@ -14,10 +14,7 @@ define('FLARUM_START', microtime(true));
14
require 'vendor/autoload.php';
15
16
$server = new Flarum\Console\Server(
17
- Flarum\Foundation\Site::fromPaths([
18
- 'base' => __DIR__,
19
- 'public' => __DIR__.'/public',
20
- ])
+ Flarum\Foundation\Site::fromDefaultBase(__DIR__)
21
);
22
23
$server->listen();
public/index.php
@@ -12,10 +12,7 @@
12
require '../vendor/autoload.php';
13
$server = new Flarum\Http\Server(
- 'base' => __DIR__.'/..',
- 'public' => __DIR__,
+ Flarum\Foundation\Site::fromDefaultBase(__DIR__.'/..')
0 commit comments