From 0be359082ed70ce6badd36f439bfb0ad6b06e4f0 Mon Sep 17 00:00:00 2001 From: NoScopie Date: Wed, 18 May 2016 14:29:39 +0200 Subject: [PATCH] Update DefaultController.php template files I've changed the "@LightSamlSp/" to "LightSamlSpBundle::" for template rendering. This makes it possible to override a template with your own custom style. For example you can set up a SamlBundle with LightSamlSpBundle as parent and you can create "discovery.html.twig" with a template that matches your website. More info: http://symfony.com/doc/current/cookbook/bundles/inheritance.html --- src/LightSaml/SpBundle/Controller/DefaultController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LightSaml/SpBundle/Controller/DefaultController.php b/src/LightSaml/SpBundle/Controller/DefaultController.php index d97618f..7212b17 100644 --- a/src/LightSaml/SpBundle/Controller/DefaultController.php +++ b/src/LightSaml/SpBundle/Controller/DefaultController.php @@ -35,7 +35,7 @@ public function discoveryAction() return $this->redirectToRoute('lightsaml_sp.login', ['idp' => $parties[0]->getEntityID()]); } - return $this->render('@LightSamlSp/discovery.html.twig', [ + return $this->render('LightSamlSpBundle::discovery.html.twig', [ 'parties' => $parties, ]); } @@ -60,7 +60,7 @@ public function sessionsAction() { $ssoState = $this->get('lightsaml.container.build')->getStoreContainer()->getSsoStateStore()->get(); - return $this->render('@LightSamlSp/sessions.html.twig', [ + return $this->render('LightSamlSpBundle::sessions.html.twig', [ 'sessions' => $ssoState->getSsoSessions(), ]); }