catchAdmin/app/event/LoadModuleRoutes.php

26 lines
407 B
PHP
Raw Normal View History

2019-12-02 23:04:43 +08:00
<?php
declare (strict_types = 1);
namespace app\event;
use catcher\CatchAdmin;
use think\Route;
class LoadModuleRoutes
{
/**
* 处理
*
* @time 2019年11月29日
* @return void
*/
public function handle(): void
{
$router = app(Route::class);
$router->group(function () use ($router) {
include CatchAdmin::getRoutes();
});
}
}