Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't extend SoapClient and override correctly method loadWsdl #90

Open
Tobur opened this issue Sep 4, 2014 · 2 comments
Open

Can't extend SoapClient and override correctly method loadWsdl #90

Tobur opened this issue Sep 4, 2014 · 2 comments

Comments

@Tobur
Copy link

Tobur commented Sep 4, 2014

Currently I want to use twig template with variables for wsdl for create it dynamically.
Now I have something like this:

  /**
     * @param string $wsdl
     * @param array $options
     * @param bool $callParent
     */
    public function __construct(
        $wsdl,
        array $options,
        $callParent = false
    ) {
        if ($callParent) {
            return parent::__construct($wsdl, $options);
        }

        $this->options = $options;
        $this->wsdlPath = $wsdl;
    }

    /**
     * @return string
     */
    public function getWsdlPath()
    {
        return $this->wsdlPath;
    }

    /**
     * @param $wsdl
     */
    public function build($wsdl = null)
    {
        if (empty($wsdl)) {
            $wsdl = $this->wsdlPath;
        }
        $this->__construct(
            $wsdl,
            $this->options,
            $callParent = true
        );
    } 

But I want to write something beautiful 😄

@Tobur
Copy link
Author

Tobur commented Sep 7, 2014

Sorry, my composer.json is not correct and I have old version of this, In new version loadWsdl is protected.

@Tobur
Copy link
Author

Tobur commented Sep 7, 2014

Can be closed, sorry again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant