Added AbstractSoapBuilder::withWsdlCache() method
This commit is contained in:
parent
40eacb99e5
commit
0f30119294
@ -97,6 +97,17 @@ abstract class AbstractSoapBuilder
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function withWsdlCache($cache)
|
||||||
|
{
|
||||||
|
if (!in_array($cache, Cache::getTypes())) {
|
||||||
|
throw new \InvalidArgument();
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->soapOptions['cache_wsdl'] = $cache;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return AbstractSoapBuilder
|
* @return AbstractSoapBuilder
|
||||||
*/
|
*/
|
||||||
|
@ -59,7 +59,7 @@ class Cache
|
|||||||
static public function setType($type)
|
static public function setType($type)
|
||||||
{
|
{
|
||||||
if (!in_array($type, self::getTypes())) {
|
if (!in_array($type, self::getTypes())) {
|
||||||
throw new \InvalidArgumentException();
|
throw new \InvalidArgumentException('The cache type has to be either Cache::TYPE_NONE, Cache::TYPE_DISK, Cache::TYPE_MEMORY or Cache::TYPE_DISK_MEMORY');
|
||||||
}
|
}
|
||||||
|
|
||||||
self::iniSet('soap.wsdl_cache', $type);
|
self::iniSet('soap.wsdl_cache', $type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user