After integrating Symfony with Flex through Zend_Amf, I had to debug it and I needed some logs on server side.
Below I present my LoggedAmfServer extending Zend_Amf_Server, which logs all methods called by Flex and its’ responses. You need to pass instance of sfLogger (ie. sfFileLogger) in the constructor.
Archiwum dla ‘Symfony’ kategoria
[Zend_Amf + Symfony + Flex] Server with Logger
07-18-2010Overriding setter/getter in Symfony
07-02-2010Overriding methods should not be a problem, but it can make you confused if you don’t know how magic functions are used in Symfony 1.4 models.
In this short article I will explain why usual overriding does not work in Symfony models and how to override methods handled by magic functions.