Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[Zend\Soap\Server][NEW] add a getSoap method, return the internal instance #5811

Merged

Conversation

lilobase
Copy link
Contributor

Currently, we are no able to access of the internal SoapServer instance. But in certain case (especially when we need to send a soapfault with the setReturnResponse at true) we need an access to the internal instance.
So this pull request adds a proxy method getSoap() which returns the internal SoapServer instance.

Code is unit-tested

@@ -34,6 +34,11 @@ class Server implements ZendServerServer
protected $class;

/**
* Server instance
* @var \SoapServer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the SoapServer already in use statement, so no need to add "" prefix.

@lilobase
Copy link
Contributor Author

fixed!

* @var SoapServer
*/
protected $server = null;
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let a blank line before this comment

@weierophinney weierophinney added this to the 2.3.0 milestone Mar 3, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
[Zend\Soap\Server][NEW] add a getSoap method, return the internal instance

Conflicts:
	tests/ZendTest/Soap/ServerTest.php

Changes name of `_getSoap()` to `getSoap()`, and gives it public visibility.
weierophinney added a commit that referenced this pull request Mar 4, 2014
@weierophinney weierophinney merged commit 91a72a1 into zendframework:develop Mar 4, 2014
weierophinney added a commit to zendframework/zend-soap that referenced this pull request May 15, 2015
…pServerGetSoapServerInstance

[Zend\Soap\Server][NEW] add a getSoap method, return the internal instance

Conflicts:
	tests/ZendTest/Soap/ServerTest.php

Changes name of `_getSoap()` to `getSoap()`, and gives it public visibility.
weierophinney added a commit to zendframework/zend-soap that referenced this pull request May 15, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants