/** *make the match * * @param string|null $url * @return bool */ public function match($url = null) { $match = parent::match($url); $find = $this->replaceParameters(); if (false !== $find || true === $match) { return true; } else { return false; } }
/** *Regex kontrolu yapar * * @param string|null $url * @return bool */ 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; } }