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