Esempio n. 1
0
 public function invoke(Match $match)
 {
     $extras = $match->getRoute()->getExtras();
     \Routy\call_user_func_named($this->callback, $match->getParameters() + $extras);
 }
Esempio n. 2
0
 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()]);
 }