This commit is contained in:
2021-08-06 15:18:00 +08:00
parent 776a251123
commit fc253b52bf
4 changed files with 37 additions and 15 deletions
-7
View File
@@ -37,13 +37,6 @@ use Snowflake\Snowflake;
{
// TODO: Implement setHandler() method.
$router = Snowflake::app()->getRouter();
$attribute = Snowflake::getDi()->getMethodAttribute($class::class, $method);
foreach ($attribute as $item) {
if ($item instanceof Route) {
continue;
}
$item->execute($class, $method);
}
$router->addRoute($this->uri, [$class, $method], $this->method);
return $router;
}