Browse Source

Adopt new Flarum\Foundation\Site interface

Refs flarum/core#1592.
pull/57/head
Franz Liedke 6 years ago
parent
commit
dfebb5c8ca
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
  1. 5
      flarum
  2. 5
      public/index.php

5
flarum

@ -14,10 +14,7 @@ define('FLARUM_START', microtime(true));
require 'vendor/autoload.php';
$server = new Flarum\Console\Server(
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__,
'public' => __DIR__.'/public',
])
Flarum\Foundation\Site::fromDefaultBase(__DIR__)
);
$server->listen();

5
public/index.php

@ -12,10 +12,7 @@
require '../vendor/autoload.php';
$server = new Flarum\Http\Server(
Flarum\Foundation\Site::fromPaths([
'base' => __DIR__.'/..',
'public' => __DIR__,
])
Flarum\Foundation\Site::fromDefaultBase(__DIR__.'/..')
);
$server->listen();

Loading…
Cancel
Save