public function Server::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-diactoros/src/Server.php \Zend\Diactoros\Server::__construct()
Constructor
Given a callback, a request, and a response, we can create a server.
Parameters
callable $callback:
ServerRequestInterface $request:
ResponseInterface $response:
File
- vendor/
zendframework/ zend-diactoros/ src/ Server.php, line 55
Class
- Server
- "Serve" incoming HTTP requests
Namespace
Zend\DiactorosCode
public function __construct(callable $callback, ServerRequestInterface $request, ResponseInterface $response) {
$this->callback = $callback;
$this->request = $request;
$this->response = $response;
}