src/Router.php
protected function getParams($url)
    {
        $request = trim($this->request_uri, '/');
        if(stripos($url, AUTO_ROUTE) !== false){
            $url = trim(str_replace('[auto]', '', $url), '/');
            if(preg_match("`^$url`", $request)){
                $this->params = explode('/', substr($request, strlen($url)));
                if(count($this->params) > 0 && empty($this->params[0])){
                    array_shift($this->params);
                }

                return true;
            }
        }

        $matches = array();
        $result = preg_match("`^$url$`", $request, $matches);
        if (count($matches) >= 2) {
            array_shift($matches);
            $this->params = $matches;
        }

        return $result;
    }
protected function getParams($url)
    {
        $request = trim($this->request_uri, '/');
        if(stripos($url, AUTO_ROUTE) !== false){
            $url = trim(str_replace('[auto]', '', $url), '/');
            if(preg_match("`^$url`", $request)){
                $this->params = explode('/', substr($request, strlen($url)));
                if(count($this->params) > 0 && empty($this->params[0])){
                    array_shift($this->params);
                }

                return true;
            }
        }

        $matches = array();
        $result = preg_match("`^$url$`", $request, $matches);
        if (count($matches) >= 2) {
            array_shift($matches);
            $this->params = $matches;
        }

        return $result;
    }
Speichert die Parameter der übergebenen URL als Array ($this->params)
anhand der aufgerufenen URL.

@param string $url URL der die Parameter entnommen werden sollen

@return bool