Http\AbstractServer: Use middleware functionality when listening

This commit is contained in:
Franz Liedke 2016-04-16 13:11:33 +09:00
parent f0502fc955
commit 2b9d205cb2

View File

@ -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();
}
/**