I'm analyzing how Zend_Rest and Tonic work. There is no authentication implemented so I would like to add my own. My only problem is that they use Reflection and the when you call a method, you have to add the authentication call each time.
I was thinking to add the authentication check in the constructor but then you can't actually stop the method being called.
Anybody had this problem and came up with a good solution?