AttachmentsHandlerInterface refactored

This commit is contained in:
Petr Bechyně
2016-11-08 18:31:28 +01:00
parent 84c37b1d24
commit 5fbcfb3e22
3 changed files with 41 additions and 9 deletions

View File

@ -61,6 +61,17 @@ class SoapServerOptions
}
}
public function getHandlerInstance()
{
if ($this->hasHandlerClass()) {
$handlerClassName = $this->handlerClass;
return new $handlerClassName;
}
return $this->getHandler();
}
public function hasHandlerClass()
{
return $this->handlerClass !== null;