new HandleValinorMappingErrors(),
]);
- try {
- $response = $pipeline->process($psrRequest, $this->getActiveRequest());
- } catch (IllegalLinkException | PermissionDeniedException | InvalidSecurityTokenException $e) {
- throw new \LogicException(\sprintf(
- "'%s' escaped from the middleware stack.",
- $e::class
- ), 0, $e);
- }
+ $response = $pipeline->process($psrRequest, $this->getActiveRequest());
if ($response instanceof LegacyPlaceholderResponse) {
return;
$emitter = new SapiEmitter();
$emitter->emit($response);
+ } catch (IllegalLinkException | PermissionDeniedException | InvalidSecurityTokenException $e) {
+ throw new \LogicException(\sprintf(
+ "'%s' escaped from the middleware stack.",
+ $e::class
+ ), 0, $e);
} catch (NamedUserException $e) {
$e->show();