Skip to content

Commit 2cb00e7

Browse files
authored
Merge pull request #37 from kidatsy/master
Making DefaultController work with Symfony 2.3
2 parents 79b329c + 4a7f771 commit 2cb00e7

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
@@ -32,7 +32,7 @@ public function discoveryAction()
3232
$parties = $this->get('lightsaml.container.build')->getPartyContainer()->getIdpEntityDescriptorStore()->all();
3333

3434
if (count($parties) == 1) {
35-
return $this->redirectToRoute('lightsaml_sp.login', ['idp' => $parties[0]->getEntityID()]);
35+
return $this->redirect($this->generateUrl('lightsaml_sp.login', ['idp' => $parties[0]->getEntityID()]));
3636
}
3737

3838
return $this->render('LightSamlSpBundle::discovery.html.twig', [
@@ -44,7 +44,7 @@ public function loginAction(Request $request)
4444
{
4545
$idpEntityId = $request->get('idp');
4646
if (null === $idpEntityId) {
47-
return $this->redirectToRoute($this->container->getParameter('lightsaml_sp.route.discovery'));
47+
return $this->redirect($this->generateUrl($this->container->getParameter('lightsaml_sp.route.discovery')));
4848
}
4949

5050
$profile = $this->get('ligthsaml.profile.login_factory')->get($idpEntityId);

0 commit comments

Comments
 (0)