eee
This commit is contained in:
@@ -35,12 +35,11 @@ class SwooleHttpResponseEmitter implements ResponseEmitterInterface
|
||||
|
||||
/**
|
||||
* @param EventDispatch $dispatch
|
||||
* @param EventProvider $provider
|
||||
*/
|
||||
public function __construct(readonly public EventDispatch $dispatch, readonly public EventProvider $provider)
|
||||
public function __construct(readonly public EventDispatch $dispatch)
|
||||
{
|
||||
$this->afterRequest = new OnAfterRequest();
|
||||
$this->events = $this->provider->getListenersForEvent($this->afterRequest);
|
||||
$this->events = di(EventProvider::class)->getListenersForEvent($this->afterRequest);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user