改名
This commit is contained in:
@@ -56,7 +56,6 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
public ExceptionHandlerInterface $exceptionHandler;
|
public ExceptionHandlerInterface $exceptionHandler;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
* @throws ConfigException
|
* @throws ConfigException
|
||||||
@@ -65,12 +64,10 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$exceptionHandler = Config::get('exception.http', null);
|
$exceptionHandler = Config::get('exception.http', null);
|
||||||
var_dump($exceptionHandler);
|
if (!in_array(ExceptionHandlerInterface::class, class_implements($exceptionHandler))) {
|
||||||
if (!($exceptionHandler instanceof ExceptionHandlerInterface)){
|
|
||||||
$exceptionHandler = Snowflake::getDi()->get(ExceptionHandlerDispatcher::class);
|
$exceptionHandler = Snowflake::getDi()->get(ExceptionHandlerDispatcher::class);
|
||||||
}
|
}
|
||||||
$this->exceptionHandler = $exceptionHandler;
|
$this->exceptionHandler = $exceptionHandler;
|
||||||
var_dump($this->exceptionHandler);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user