-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathRouterHandle.php
39 lines (36 loc) · 1019 Bytes
/
RouterHandle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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);
}
}