Split up front controllers again

pull/25/head
Toby Zerner 2015-10-07 23:09:57 +10:30
parent e3b14ea8ce
commit b009ea6b1c
4 changed files with 34 additions and 4 deletions

16
admin.php Normal file
View File

@ -0,0 +1,16 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require 'vendor/autoload.php';
$server = new Flarum\Admin\Server(__DIR__);
$server->listen();

16
api.php Normal file
View File

@ -0,0 +1,16 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require 'vendor/autoload.php';
$server = new Flarum\Api\Server(__DIR__);
$server->listen();

2
flarum
View File

@ -13,6 +13,6 @@ define('FLARUM_START', microtime(true));
require 'vendor/autoload.php';
$server = new Flarum\Server\ConsoleServer(__DIR__);
$server = new Flarum\Console\Server(__DIR__);
$server->listen();

View File

@ -9,10 +9,8 @@
* file that was distributed with this source code.
*/
define('FLARUM_START', microtime(true));
require 'vendor/autoload.php';
$server = new Flarum\Server\WebServer(__DIR__);
$server = new Flarum\Forum\Server(__DIR__);
$server->listen();