finalEmailHandler; } elseif ($message instanceof AsyncMessage) { $handler = $this->finalAsyncHandler; } if (!$handler) { throw new MessageFailureException('There is no handler to handle message!'); } $handler->setIsLast($isLast); return $handler($message); } }