Hi Wade,
Thanks for your response! :) I ended up performing a simple workaround
by which the class registered with Zend_Amf_Server fetches the instance
needed from Zend_Registry and uses it to build the data for the response.
wadearnold wrote:
Darby Felton-2 wrote:
$server->addFunction(array($object, 'somePublicAmfResponderFunction'));
I get a terse exception thrown:
"Unable to attach function"
I think that this is a bug, but I wanted to report here to get feedback
first. Shall I create an issue in JIRA?
That should work. Please open a bug in the issue tracker.
Here we go:
http://framework.zend.com/issues/browse/ZF-5439
Darby Felton-2 wrote:
Does anyone know how to get Zend_Amf_Server to use an *instance* that is
passed to it, so that it can take advantage of the object's state? Or
maybe there is an alternative approach that I should use?
Update your zend amf from the trunk it now supports passing in instances to
classes from setClass($instance)
Excellent! Once this support is released (do you know which version will
contain this support?) and we upgrade to that release, I can remove my
workaround using Zend_Registry. Currently we're using 1.7.2.
Thanks again,
Darby