This commit is contained in:
2021-10-26 10:29:46 +08:00
parent 8a45ffac0e
commit 86eeceda74
+2 -2
View File
@@ -58,8 +58,8 @@ class Server implements OnRequestInterface
*/
public function init()
{
$this->container->setBindings(RequestInterface::class, Constrict\Request::class);
$this->container->setBindings(ResponseInterface::class, Constrict\Response::class);
$this->container->mapping(RequestInterface::class, Constrict\Request::class);
$this->container->mapping(ResponseInterface::class, Constrict\Response::class);
$exceptionHandler = Config::get('exception.http', ExceptionHandlerDispatcher::class);
if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) {