Closed phpmathan closed 4 years ago
When registering a listener to capture all events (ie., *) some events not captured like swoft.http.server.request.before, swoft.http.server.request.after etc., because in EventManager->trigger() event got returned when $shouldCall is empty.
*
swoft.http.server.request.before
swoft.http.server.request.after
EventManager->trigger()
$shouldCall
Made a minor fix for the above-mentioned issue.
When registering a listener to capture all events (ie.,
*
) some events not captured likeswoft.http.server.request.before
,swoft.http.server.request.after
etc., because inEventManager->trigger()
event got returned when$shouldCall
is empty.Made a minor fix for the above-mentioned issue.