Skip to content

Commit 0be3590

Browse files
committed
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
1 parent f89b0ff commit 0be3590

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/LightSaml/SpBundle/Controller/DefaultController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function discoveryAction()
3535
return $this->redirectToRoute('lightsaml_sp.login', ['idp' => $parties[0]->getEntityID()]);
3636
}
3737

38-
return $this->render('@LightSamlSp/discovery.html.twig', [
38+
return $this->render('LightSamlSpBundle::discovery.html.twig', [
3939
'parties' => $parties,
4040
]);
4141
}
@@ -60,7 +60,7 @@ public function sessionsAction()
6060
{
6161
$ssoState = $this->get('lightsaml.container.build')->getStoreContainer()->getSsoStateStore()->get();
6262

63-
return $this->render('@LightSamlSp/sessions.html.twig', [
63+
return $this->render('LightSamlSpBundle::sessions.html.twig', [
6464
'sessions' => $ssoState->getSsoSessions(),
6565
]);
6666
}

0 commit comments

Comments
 (0)