From dfebb5c8ca3306f8dd26003d79ba3d0c830f3081 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 24 Oct 2018 22:20:31 +0200 Subject: [PATCH] Adopt new Flarum\Foundation\Site interface Refs flarum/core#1592. --- flarum | 5 +---- public/index.php | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/flarum b/flarum index a734661..5229c90 100644 --- a/flarum +++ b/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(); diff --git a/public/index.php b/public/index.php index 431a239..94a2924 100644 --- a/public/index.php +++ b/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();