getNextInvokeHandler() protected method

protected getNextInvokeHandler ( Closure $next, $handler )
$next Closure
Beispiel #1
0
 protected function getNextInvokeHandler(Closure $next, $handler)
 {
     if ($this->async) {
         return parent::getNextInvokeHandler($next, $handler);
     }
     return function ($name, array &$args, stdClass $context) use($next, $handler) {
         $array = array($name, &$args, $context, $next);
         return call_user_func_array($handler, $array);
     };
 }