SUCCESS_EMPTY_RESPONSE
SUCCESS_EMPTY_RESPONSE = 'success'
Empty string.
Class Guard.
$request : \Symfony\Component\HttpFoundation\Request
$encryptor : \EasyWeChat\Encryption\Encryptor
$handlers : \EasyWeChat\Support\Collection
Event handlers.
__construct(string $token, \Symfony\Component\HttpFoundation\Request $request = null)
Constructor.
string | $token | |
\Symfony\Component\HttpFoundation\Request | $request |
serve() : \Symfony\Component\HttpFoundation\Response
Handle and return response.
setMessageHandler(callable $callback = null, integer $option = self::ALL_MSG) : \EasyWeChat\Server\Guard
Add a event listener.
callable | $callback | |
integer | $option |
getRequest() : \Symfony\Component\HttpFoundation\Request
Request getter.
setRequest(\Symfony\Component\HttpFoundation\Request $request) : $this
Request setter.
\Symfony\Component\HttpFoundation\Request | $request |
setEncryptor(\EasyWeChat\Encryption\Encryptor $encryptor) : \EasyWeChat\Server\Guard
Set Encryptor.
\EasyWeChat\Encryption\Encryptor | $encryptor |
getEncryptor() : \EasyWeChat\Encryption\Encryptor
Return the encryptor instance.
getHandlers() : \EasyWeChat\Support\Collection
Get handlers.
getHandler(string $type) : \EasyWeChat\OpenPlatform\EventHandlers\EventHandler|null
Get handler.
string | $type |
buildReply(string $to, string $from, \EasyWeChat\Message\AbstractMessage $message) : string
Build reply XML.
string | $to | |
string | $from | |
\EasyWeChat\Message\AbstractMessage | $message |