$exception =
$exceptions[0
];
$error->
offsetSet('exception',
$exception);
// Keep a copy of the original request
$error->
offsetSet('request',
clone $request);
// Get a count of the number of exceptions encountered
$this->exceptionCountAtFirstEncounter = \
count($exceptions);
// Forward to the error handler
$request->
setParam('error_handler',
$error) ->
setControllerName('error'
) ->
setActionName('error'
) ->
setDispatched(false
);
} private function isBotSession(ShopwareRequest
$request): bool
{ if (!
$request instanceof SymfonyRequest
) { return false;
} $session =
$request->
getSession();