Permalink
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (36 sloc) 1019 Bytes
<?php
/*************************************************
* Easy PHP *
* *
* A Faster Lightweight Full-Stack PHP Framework *
* *
* TIERGB *
* <https://github.com/TIGERB> *
* *
*************************************************/
namespace Framework\Handles;
use Framework\App;
use Framework\Exceptions\CoreHttpException;
use ReflectionClass;
use Closure;
use Framework\Router\Job;
use Framework\Router\EasyRouter;
/**
* 路由处理机制.
*
* @author TIERGB <https://github.com/TIGERB>
*/
class RouterHandle implements Handle
{
/**
* 注册路由处理机制.
*
* @param App $app 框架实例
* @param void
*/
public function register(App $app)
{
// 初始化路由模块入口类
(new EasyRouter())->init($app);
}
}