Skip to content

Commit

Permalink
Update DefaultController.php template files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TheBabaYaga committed May 18, 2016
1 parent f89b0ff commit 0be3590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LightSaml/SpBundle/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}
Expand All @@ -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(),
]);
}
Expand Down

0 comments on commit 0be3590

Please sign in to comment.