/** * {@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; }
/** * {@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; }
/** * {@inheritdoc} */ public function match(\Vine\Component\Http\RequestInterface $request, \Vine\Component\Routing\Route\RouteInterface $route) { /*{{{*/ return strpos($request->getUrlPath(), $this->prefix) !== false ? true : false; }
/** * {@inheritdoc} */ public function match(\Vine\Component\Http\RequestInterface $request, &$actionArgs = array()) { /*{{{*/ return strpos($request->getUrlPath(), $this->prefix) !== false ? true : false; }