src/EventListener/ExceptionListener.php
protected function duplicateRequest(\Exception $exception, Request $request)
    {
        $request = parent::duplicateRequest($exception, $request);
        $request->attributes->set('exception', FlattenException::create($exception));

        return $request;
    }
protected function duplicateRequest(\Exception $exception, Request $request)
    {
        $request = parent::duplicateRequest($exception, $request);
        $request->attributes->set('exception', FlattenException::create($exception));

        return $request;
    }
{@inheritdoc}