Example #1
0
 /**
  * Parse service method name, also ensure that it exists.
  *
  * @param string $serviceMethod
  * @param string $topicName
  * @return array Contains class name and method name
  */
 protected function parseServiceMethod($serviceMethod, $topicName)
 {
     preg_match(self::SERVICE_METHOD_NAME_PATTERN, $serviceMethod, $matches);
     $className = $matches[1];
     $methodName = $matches[2];
     $this->xmlValidator->validateServiceMethod($serviceMethod, $topicName, $className, $methodName);
     return ['typeName' => $className, 'methodName' => $methodName];
 }