改名
This commit is contained in:
@@ -76,11 +76,23 @@ class OnHandshake extends Callback
|
||||
* @throws Exception
|
||||
*/
|
||||
public function onHandler(SRequest $request, SResponse $response)
|
||||
{
|
||||
Coroutine::defer(function () {
|
||||
fire(Event::EVENT_AFTER_REQUEST);
|
||||
});
|
||||
$this->execute($request, $response);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param SRequest $request
|
||||
* @param SResponse $response
|
||||
* @return mixed|bool|null
|
||||
* @throws ComponentException
|
||||
*/
|
||||
private function execute(SRequest $request, SResponse $response)
|
||||
{
|
||||
try {
|
||||
Coroutine::defer(function () {
|
||||
fire(Event::EVENT_AFTER_REQUEST);
|
||||
});
|
||||
$this->resolveParse($request, $response);
|
||||
|
||||
$manager = Snowflake::app()->annotation->websocket;
|
||||
|
||||
Reference in New Issue
Block a user