src/Controller/UpdateController.php
private function getRequestConfiguration(Request $request)
    {
        return [
            'template' => $request->get('_template', '@PhpMobSettings/default.html.twig'),
            'redirect' => $request->get('_redirect', $request->headers->get('referer')),
            'flash' => $request->get('_flash', 'phpmob.settings_update_successfuly'),
            'isHtml' => 'html' === $request->getRequestFormat(),
        ];
    }
private function getRequestConfiguration(Request $request)
    {
        return [
            'template' => $request->get('_template', '@PhpMobSettings/default.html.twig'),
            'redirect' => $request->get('_redirect', $request->headers->get('referer')),
            'flash' => $request->get('_flash', 'phpmob.settings_update_successfuly'),
            'isHtml' => 'html' === $request->getRequestFormat(),
        ];
    }
@param Request $request

@return array