Esempio n. 1
0
 private function is_it_matches($type, $slug = null)
 {
     $conditional_fn = $this->get_conditional_fn($type);
     if ($conditional_fn !== false) {
         return is_null($slug) ? call_user_func($conditional_fn) : call_user_func($conditional_fn, $slug);
     }
     return $this->originalUriValidator->matches($this->route, $this->request);
 }
Esempio n. 2
0
 /**
  * Falls back to the original uri validator.
  * @return bool
  */
 private function fallback()
 {
     return $this->originalUriValidator->matches($this->route, $this->request);
 }