i want list of event in magento.I want a script, whenever it will run get list of events,which is belong to magento...
Asked
Active
Viewed 217 times
1 Answers
2
Via the commandline you can run grep -RHin 'dispatchEvent' . from the app/code directory. This will output a list of all locations where an event is triggered.
As you indicated you're working on Windows and you want to do this using a php script. In that case check out this thread on Stackoverflow on recursive file search. You will need to read each file you find search for dispatchEvent. This script will be very heavy to run on the server and should probably not be used in any production environment.
Sander Mangel
- 37,528
- 5
- 80
- 148
shell_execto run the command and catch the output from a PHP script. Using a Linux command to do this will be a lot faster then using some PHP function that greps through all the files – Sander Mangel Feb 18 '14 at 10:53