public function match($url = null)
    {
        $match = parent::match($url);
        $regex = $this->getRegex($this->getMatchUrl());

        if ($regex !== ' ') {
            if (preg_match("@" . ltrim($regex) . "@si", $this->getRequestedUrl(), $matches) || true === $match) {
                unset($matches[0]);
                ParameterBag::setParameters($matches);
                return true;
            } else {
                return false;
            }
        } else {
            return false;
        }

    }
public function match($url = null)
    {
        $match = parent::match($url);
        $regex = $this->getRegex($this->getMatchUrl());

        if ($regex !== ' ') {
            if (preg_match("@" . ltrim($regex) . "@si", $this->getRequestedUrl(), $matches) || true === $match) {
                unset($matches[0]);
                ParameterBag::setParameters($matches);
                return true;
            } else {
                return false;
            }
        } else {
            return false;
        }

    }
public function match ( $ url = null ) { $ match = parent :: match ( $ url ) ; $ regex = $ this -> getRegex ( $ this -> getMatchUrl ( ) ) ; if ( $ regex !== ' ' ) { if ( preg_match ( "@" . ltrim ( $ regex ) . "@si" , $ this -> getRequestedUrl ( ) , $ matches ) || true === $ match ) { unset ( $ matches [ 0 ] ) ; ParameterBag :: setParameters ( $ matches ) ; return true ; } else { return false ; } } else { return false ; } }
Regex kontrolu yapar

@param string|null $url
@return bool
Regex kontrolu yapar