Example #1
0
 /**
  * {@inheritdoc}
  */
 public function match(\Vine\Component\Http\RequestInterface $request, \Vine\Component\Routing\Route\RouteInterface $route)
 {
     /*{{{*/
     if (!preg_match($this->regex, $request->getUrlPath(), $matches)) {
         return false;
     }
     array_shift($matches);
     $route->setActionArgs($matches);
     return true;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function match(\Vine\Component\Http\RequestInterface $request, &$actionArgs = array())
 {
     /*{{{*/
     if (!preg_match($this->regex, $request->getUrlPath(), $matches)) {
         return false;
     }
     array_shift($matches);
     $actionArgs = $matches;
     return true;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function match(\Vine\Component\Http\RequestInterface $request, \Vine\Component\Routing\Route\RouteInterface $route)
 {
     /*{{{*/
     return strpos($request->getUrlPath(), $this->prefix) !== false ? true : false;
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function match(\Vine\Component\Http\RequestInterface $request, &$actionArgs = array())
 {
     /*{{{*/
     return strpos($request->getUrlPath(), $this->prefix) !== false ? true : false;
 }