SUCCESS_EMPTY_RESPONSE
SUCCESS_EMPTY_RESPONSE = 'success'
Empty string.
Class Guard.
$request : \Symfony\Component\HttpFoundation\Request
$encryptor : \EasyWeChat\Encryption\Encryptor
__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.
buildReply(string $to, string $from, \EasyWeChat\Message\AbstractMessage $message) : string
Build reply XML.
string | $to | |
string | $from | |
\EasyWeChat\Message\AbstractMessage | $message |
<?php
/*
* This file is part of the overtrue/wechat.
*
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* Guard.php.
*
* Part of Overtrue\WeChat.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author mingyoung <mingyoungcheung@gmail.com>
* @copyright 2016
*
* @see https://github.com/overtrue
* @see http://overtrue.me
*/
namespace EasyWeChat\MiniProgram\Server;
use EasyWeChat\Server\Guard as ServerGuard;
class Guard extends ServerGuard
{
}