Hi. 
I'm using Zend Soap Autodiscovery and want to do autodicover over an php
interface (I think is a good idea because I want to export only some methods
of my class, and also it give me a more nice way to declare the client and
server class interfaces). When I pass the interface name to the autodiscover
class->setClass I get an error in the relfection code.
I solved this problem adding two lines (see below) in the code and want to
know if there is a problem with my modification and if there is a way to
patch the framework code ?

Thank in advance [EMAIL PROTECTED]

    {
        if (is_object($class)) {
            $reflection = new ReflectionObject($class);
        } elseif (interface_exists($class)) {
            $reflection = new ReflectionClass($class);
        } elseif (class_exists($class)) {
            $reflection = new ReflectionClass($class);
        } else {
            throw new Zend_Server_Reflection_Exception('Invalid class or
object passed to attachClass()');
        }

-- 
View this message in context: 
http://www.nabble.com/Zend_Server_Reflection-don%27t-work-with-interfaces.-tp19435866p19435866.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to