-
Notifications
You must be signed in to change notification settings - Fork 18
Closed as not planned
Labels
questionFurther information is requestedFurther information is requested
Description
Let's say you have the following:
class MyHandler {
public function handle(MyCommand $command) {}
}
class MyCommand {
public function __construct(public string $name) {}
}
class MyController {
public function __invoke() {
$this->commandBus->dispatch(new MyCommand('Ruud'));
}
}The above should return in no dead classes.
But when MyCommand is not dispatched anywhere, it should mark MyHandler + MyCommand as dead.
Same with an Event and multiple event subscribers to that event. If the event is never dispatched, the event + all the subscribers should be marked as dead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested