for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://www.chaoyouyun.com
* @copyright 2014-2018 Chongqing Xianzhou Technology LLC
*
* @author Xiaomin<[email protected]>
* @version 1.0.0
* @since 1.0
*/
namespace EasyWeChat\OpenWork\Server;
use EasyWeChat\Kernel\ServerGuard;
class Guard extends ServerGuard
{
protected $alwaysValidate = true;
* @return bool
public function validate()
return $this;
return $this
EasyWeChat\OpenWork\Server\Guard
boolean
}
protected function shouldReturnRawResponse(): bool
return !is_null($this->app['request']->get('echostr'));
protected function isSafeMode(): bool
return true;