This commit is contained in:
2021-09-18 10:40:57 +08:00
parent 1f34eb6675
commit 002b3a59ec
+2 -2
View File
@@ -28,10 +28,10 @@ use Http\Route\Router;
/** /**
* @param mixed $class * @param mixed $class
* @param mixed|null $method * @param mixed|null $method
* @return Router * @return bool
* @throws \ReflectionException * @throws \ReflectionException
*/ */
public function execute(mixed $class, mixed $method = null): Router public function execute(mixed $class, mixed $method = null): bool
{ {
HandlerManager::add($this->uri, $this->method, new Handler($this->uri, [$class, $method])); HandlerManager::add($this->uri, $this->method, new Handler($this->uri, [$class, $method]));
return parent::execute($class, $method); return parent::execute($class, $method);