This commit is contained in:
2021-09-07 11:44:12 +08:00
parent 0cdb8c5b20
commit 86880f8b1f
5 changed files with 11 additions and 17 deletions
+6 -9
View File
@@ -23,18 +23,15 @@ use Kiri\Kiri;
}
/**
* @param static $params
* @param mixed $class
* @param mixed|null $method
* @return Router
* @throws \Kiri\Exception\NotFindClassException
* @throws \ReflectionException
*/
/**
* @param mixed $class
* @param mixed|null $method
* @return Router
*/
public function execute(mixed $class, mixed $method = null): Router
{
// TODO: Implement setHandler() method.
$router = Kiri::app()->getRouter();
$router = Kiri::getDi()->get(Router::class);
if (is_string($class)) {
$class = di($class);
}