*/ class Index extends Controller { /** * @Route(path="/", name="index") * @author Soner Sayakci */ public function index(): Response { return $this->render('index.twig'); } /** * @Route(path="/api/settings") * @author Soner Sayakci */ public function settings(): JsonResponse { return new JsonResponse([ 'registrationEnabled' => XmlUtils::phpize($this->container->getParameter('registrationEnabled')) ]); } }