Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->errorTypes = error_reporting();
     register_shutdown_function(array($this, 'fatalErrorHandler'));
     $this->addMethod('getNextId', $this, '#', array('simple' => true));
 }
Example #2
0
 protected function getNextFilterHandler(Closure $next, $handler)
 {
     if ($this->async) {
         return parent::getNextFilterHandler($next, $handler);
     }
     return function ($request, stdClass $context) use($next, $handler) {
         return call_user_func($handler, $request, $context, $next);
     };
 }