Troubleshooting
Receive all internal events with wiretap()
Overview
Receive all internal events with wiretap()
Instructor allows you to receive detailed information at every stage of request and response processing via events.
(new Instructor)->wiretap(callable $callback)
method allows you to receive all
events dispatched by Instructor.
Example below demonstrates how wiretap()
can help you to monitor the execution
process and better understand or resolve any processing issues.
In this example we use print()
method available on event classes, which outputs
console-formatted information about each event.