Lib/X/Interfaces/Middleware.php
<?php
/**
* XPHP - PHP Framework
*
* This project is licensed
* under MIT. Please use it
* under the license and law.
*
* @category Framework
* @package XPHP
* @author Tianle Xu <xtl@xtlsoft.top>
* @license MIT
* @link https://github.com/xtlsoft/XPHP
*
*/
namespace X\Interfaces;
interface Middleware {
public function handle($event, \X\Request $request);
public function response($event, \X\Response $response);
}