Answer the question
In order to leave comments, you need to log in
How to debug an event in Symfony?
There is an event, you need to debug it and see how it is executed. Is it possible to call event as a command?
Answer the question
In order to leave comments, you need to log in
Debug event or still listener/subscriber?
If the latter, then write a test
in which you collect the necessary event, and pass it to the listener, checking along the way that everything is being executed...
cases) and pull the listener through the container and pass the event, collect the results already real.
If without tests - Write down a simple controller in which throw an event, and debug the result, this method will take 5 minutes ...
UPD: Found an example from the phone: www.inanzzz.com/index.php/post/04ad/testing-event- ...
conveys the essence
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question