mirror of
https://github.com/flarum/core.git
synced 2025-07-30 05:00:56 +02:00
Http\AbstractServer: Use middleware functionality when listening
This commit is contained in:
@@ -24,18 +24,14 @@ abstract class AbstractServer extends BaseAbstractServer
|
|||||||
{
|
{
|
||||||
public function listen()
|
public function listen()
|
||||||
{
|
{
|
||||||
$this->collectGarbage($this->app);
|
Server::createServer(
|
||||||
|
$this,
|
||||||
$server = Server::createServer(
|
|
||||||
$this->getMiddleware($this->app),
|
|
||||||
$_SERVER,
|
$_SERVER,
|
||||||
$_GET,
|
$_GET,
|
||||||
$_POST,
|
$_POST,
|
||||||
$_COOKIE,
|
$_COOKIE,
|
||||||
$_FILES
|
$_FILES
|
||||||
);
|
)->listen();
|
||||||
|
|
||||||
$server->listen();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user