2 Unstar Star 0 Fork 0

白磊 / easyswoole-blogPHP

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Nothing here. spread retract

Clone or download
EasySwooleEvent.php 839 Bytes
Copy Edit Web IDE Raw Blame History
白磊 authored 2020-07-03 17:24 . no message
<?php
namespace EasySwoole\EasySwoole;
use EasySwoole\EasySwoole\Swoole\EventRegister;
use EasySwoole\EasySwoole\AbstractInterface\Event;
use EasySwoole\Http\Request;
use EasySwoole\Http\Response;
class EasySwooleEvent implements Event
{
public static function initialize()
{
// TODO: Implement initialize() method.
date_default_timezone_set('Asia/Shanghai');
}
public static function mainServerCreate(EventRegister $register)
{
// TODO: Implement mainServerCreate() method.
}
public static function onRequest(Request $request, Response $response): bool
{
// TODO: Implement onRequest() method.
return true;
}
public static function afterRequest(Request $request, Response $response): void
{
// TODO: Implement afterAction() method.
}
}

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/bailei123/easyswoole.git
git@gitee.com:bailei123/easyswoole.git
bailei123
easyswoole
easyswoole-blog
master

Search