Hi Evert,
Thanks for the links. This will help me a lot.
I have some random remarks:
- In the DebugPlugin you do not define how many log levels you have.
- Due to the parameters which have to be given in the constructor the plugin can only be used for writing log files. It would not be possible to create a DebugPlugin with a database-based backend. It would be cool if there would be a "backend-neutral" interface which your debug plugin implements. Then other programmers could easily create other debug plugins.
- On the WritingPlugins wiki page it is nowhere written if the initialize method is really needed or not and when exactly it is invoked and with which parameters.
- On the same page it says "beforeMethod is called whenever any http method handler is called.". Wouldn't it be better to write "beforeMethod is called right before a http method handler is called."? Or does it not happen right before the http method is called?
- It would be good as well if this page answers as well the question what happens when serveral methods are subscribed to the same event. E.g:
$server->subscribeEvent('beforeMethod','foo');
$server->subscribeEvent('beforeMethod','bar');
In what order will they be called etc.
These are just a few questions that came to my mind when reading the two pages. It would be great if you would find the time to update the wiki page etc.