queue
queue copied to clipboard
Enhance queue and validator collectors
Here was added an integration with yii-queue
.
I think it would be useful to pass a class that called any "queue" methods, such as push()
, status()
and the rest.
Sometimes user may know which class pushed message to a queue, even if the one may be pushed from a few handlers.
I mean the same functionality as in EventDispatcherInterfaceProxy
:
public function dispatch(object $event): object
{
[$callStack] = debug_backtrace();
$this->collector->collect($event, $callStack['file'] . ':' . $callStack['line']);
return $this->dispatcher->dispatch($event);
}
Also the same thing is needed for the ValidatorCollector