Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function __invoke(PeticionInterface $peticion, callable $next) |
||
18 | { |
||
19 | $contenedor = new Contenedor(); |
||
20 | |||
21 | $controlador = $contenedor->obtener(CONTROLADOR_NAMESPACE.$peticion->controlador()); |
||
22 | |||
23 | call_user_func_array([$controlador,$peticion->metodo()], $peticion->parametros()); |
||
24 | |||
25 | return $next($peticion); |
||
26 | } |
||
28 |