use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
+use wcf\http\error\NotFoundHandler;
use wcf\http\error\XsrfValidationFailedHandler;
use wcf\http\LegacyPlaceholderResponse;
use wcf\http\middleware\AddAcpSecurityHeaders;
/**
* Builds a new request.
*
- * @throws IllegalLinkException
* @throws NamedUserException
* @throws SystemException
*/
throw $e;
}
- throw new IllegalLinkException();
+ return (new NotFoundHandler())->handle($psrRequest);
}
}