src/Router.php
protected function match($name)
    {
        if ($this->has($name)) {
            $route = $this->routes[$name];
            if (!$this->isHTTPS($name) || !$this->isValidVerb($name) || !$this->isValidDomain($name)) {
                return false;
            }
            $url = $this->findPlaceholders($route);

            return $this->getParams($url);
        }

        return false;
    }
protected function match($name)
    {
        if ($this->has($name)) {
            $route = $this->routes[$name];
            if (!$this->isHTTPS($name) || !$this->isValidVerb($name) || !$this->isValidDomain($name)) {
                return false;
            }
            $url = $this->findPlaceholders($route);

            return $this->getParams($url);
        }

        return false;
    }
Gibt zurück ob die Route der aufgerufenen URL entspricht.

@param string $name Name der Route, die überprüft werden soll.

@return bool