lheredia / php-wsdl-creator

Automatically exported from code.google.com/p/php-wsdl-creator
GNU General Public License v3.0
0 stars 0 forks source link

Not able to extend this class #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I was unable to extend the PhpWsdl class because of the CreateInstance function 
which is currently fixed on creating an instance of PhpWsdl (which I extended).

So I had to change your code for extending (not needing to change your code) 
this super class - which I had to do to change the behaviour of the 
DetermineEndpoint function to support mod_rewrite (the script is not called 
directly, instead it is called via index.php?querystring, which comes from an 
mod_rewrite rule.

Line 534..:

    // hook for extending this class...
    $class = get_called_class();
    $obj=new $class($nameSpace,$endPoint,$cacheFolder,$file,$name,$methods,$types,$outputOnRequest,$runServer);

instead of:

    $obj=new PhpWsdl($nameSpace,$endPoint,$cacheFolder,$file,$name,$methods,$types,$outputOnRequest,$runServer);

Original issue reported on code.google.com by fuwichu on 10 Apr 2012 at 7:34

GoogleCodeExporter commented 8 years ago
I'm sorry for the big delay, I didn't receive the issue notify with email. I'll 
review this issue soon. Thanks for providing your code changes!

Original comment by schickwa...@googlemail.com on 22 Aug 2012 at 8:41

GoogleCodeExporter commented 8 years ago

Original comment by schickwa...@googlemail.com on 22 Aug 2012 at 8:41