Commit 088fa860 authored by Jens Jacobsen's avatar Jens Jacobsen

Fix class name usage

parent 036f7508
Pipeline #949 passed with stages
in 2 minutes and 23 seconds
......@@ -32,12 +32,12 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
{
/**
* @var SoapClient
* @var \SoapClient
*/
protected $soapConnection;
/**
* @var SoapHeader
* @var \SoapHeader
*/
protected $authenticationHeader;
......@@ -55,7 +55,8 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
* @param string $username Login with this username
* @param string $password Login with this password
* @param boolean $returnExceptions Return exception in case of errors
* @return SoapClient
* @return \SoapClient
* @throws \Exception
*/
public function connect($wsdlUrl, $username = '', $password = '', $returnExceptions = FALSE)
{
......@@ -92,7 +93,7 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
public function resetConnection()
{
// Create connection
$this->soapConnection = new SoapClient($this->wsdlUrl, array(
$this->soapConnection = new \SoapClient($this->wsdlUrl, array(
'trace' => 1,
'exceptions' => (bool)$this->returnExceptions,
'encoding' => 'UTF-8',
......@@ -103,7 +104,7 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
// Get authentication header
if (!empty($this->username) && !empty($this->password)) {
$headerData = array('username' => $this->username, 'password' => $this->password);
$this->authenticationHeader = new SoapHeader('', 'HeaderLogin', (object)$headerData, TRUE);
$this->authenticationHeader = new \SoapHeader('', 'HeaderLogin', (object)$headerData, TRUE);
}
}
......@@ -111,11 +112,11 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
/**
* Set connection object
*
* @param SoapClient $soapConnection SOAP connection object
* @param \SoapClient $soapConnection SOAP connection object
* @deprecated Christian Zenker: Seems not to be used anywhere on typo3.org and the method is useless if the connection is reset for each call
* @return void
*/
public function setConnection(SoapClient $soapConnection)
public function setConnection(\SoapClient $soapConnection)
{
$this->soapConnection = $soapConnection;
}
......@@ -124,7 +125,7 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
/**
* Returns current connection object
*
* @return SoapClient
* @return \SoapClient
*/
public function getConnection()
{
......@@ -135,10 +136,10 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
/**
* Set authentication header
*
* @param SoapHeader $soapHeader SOAP header
* @param \SoapHeader $soapHeader SOAP header
* @return void
*/
public function setAuthenticationHeader(SoapHeader $authenticationHeader)
public function setAuthenticationHeader(\SoapHeader $authenticationHeader)
{
$this->authenticationHeader;
}
......@@ -147,7 +148,7 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
/**
* Returns current authentication header
*
* @return SoapHeader
* @return \SoapHeader
*/
public function getAuthenticationHeader()
{
......@@ -161,7 +162,7 @@ class Soap implements \TYPO3\CMS\Core\SingletonInterface
* @param string $methodName Method name
* @param array $params Parameters
* @return array Result of the SOAP call
* @throws Exception
* @throws \Exception
*/
public function __call($methodName, array $params = array())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment