0

i want list of event in magento.I want a script, whenever it will run get list of events,which is belong to magento...

user2045
  • 831
  • 3
  • 16
  • 29
Amit Bera
  • 77,456
  • 20
  • 123
  • 237

1 Answers1

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