Exemplo n.º 1
0
 /**
  *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;
     }
 }
Exemplo n.º 2
0
 /**
  *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;
     }
 }