31 public static function checkCallback($handlerUrl, $appInfo = array(), $checkInstallUrl =
true)
33 $callbackData = parse_url($handlerUrl);
35 if(is_array($callbackData)
36 && $callbackData[
'host'] <>
''
37 && mb_strpos($callbackData[
'host'],
'.') > 0
40 if($callbackData[
'scheme'] !==
'http' && $callbackData[
'scheme'] !==
'https')
42 throw new RestException(
'Unsupported handler protocol', static::ERROR_UNSUPPORTED_PROTOCOL);
47 throw new RestException(
'Wrong handler URL', static::ERROR_WRONG_HANDLER_URL);