Skip to content

Enhance queue and validator collectors #169

@xepozz

Description

@xepozz

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions