src/Controller/UpdateController.php
private function createRedirectResponse($redirect)
    {
        if (!is_array($redirect) && preg_match('/\//', $redirect)) {
            return $this->redirect($redirect);
        }

        if (!is_array($redirect)) {
            $redirect = ['route' => $redirect, 'parameters' => []];
        }

        return $this->redirectToRoute($redirect['route'], $redirect['parameters']);
    }
private function createRedirectResponse($redirect)
    {
        if (!is_array($redirect) && preg_match('/\//', $redirect)) {
            return $this->redirect($redirect);
        }

        if (!is_array($redirect)) {
            $redirect = ['route' => $redirect, 'parameters' => []];
        }

        return $this->redirectToRoute($redirect['route'], $redirect['parameters']);
    }
@param string|array $redirect

@return RedirectResponse