/** * Calls the handlers of a match in turn until the stack is exhausted or a * handler returns false. * * @param \stdClass $match * @return void */ protected function routeToHandlers($match) { $this->request->setParams($match->params); // Dispatch all middleware, abort if they return boolean false foreach ($match->handlers as $handler) { if ($this->dispatchController($handler) === false) { return; } } }