Skip to content

Commit dfebb5c

Browse files
committed
Adopt new Flarum\Foundation\Site interface
Refs flarum/framework#1592.
1 parent dd740b4 commit dfebb5c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

flarum

+1-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ define('FLARUM_START', microtime(true));
1414
require 'vendor/autoload.php';
1515

1616
$server = new Flarum\Console\Server(
17-
Flarum\Foundation\Site::fromPaths([
18-
'base' => __DIR__,
19-
'public' => __DIR__.'/public',
20-
])
17+
Flarum\Foundation\Site::fromDefaultBase(__DIR__)
2118
);
2219

2320
$server->listen();

public/index.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
require '../vendor/autoload.php';
1313

1414
$server = new Flarum\Http\Server(
15-
Flarum\Foundation\Site::fromPaths([
16-
'base' => __DIR__.'/..',
17-
'public' => __DIR__,
18-
])
15+
Flarum\Foundation\Site::fromDefaultBase(__DIR__.'/..')
1916
);
2017

2118
$server->listen();

0 commit comments

Comments
 (0)