public function invoke(Match $match) { $extras = $match->getRoute()->getExtras(); \Routy\call_user_func_named($this->callback, $match->getParameters() + $extras); }
public function invoke(Match $match) { $route = $match->getRoute(); $extras = $route->getExtras(); \Routy\call_user_func_named($this->callback, ['controller' => $extras['controller'], 'action' => $extras['action'], 'parameters' => $match->getParameters()]); }