$url = $this->unroutedUrlAssembler->assemble($uri, $options);
}
$response = new RedirectResponse($url);
- $listener = function($event) use ($response) {
+ $listener = function ($event) use ($response) {
$event->setResponse($response);
};
// Add the listener to the event dispatcher.