queue icon indicating copy to clipboard operation
queue copied to clipboard

Enhance queue and validator collectors

Open xepozz opened this issue 1 year ago • 1 comments

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

xepozz avatar Jul 31 '22 20:07 xepozz