uri = '/' . ltrim($this->uri, '/'); $this->method = strtoupper($this->method); } /** * @param mixed $class * @param mixed|null $method * @return bool * @throws \ReflectionException */ public function execute(mixed $class, mixed $method = null): bool { HandlerManager::add($this->uri, $this->method, new Handler($this->uri, [$class, $method])); return parent::execute($class, $method); } }