Created
October 7, 2011 16:07
-
-
Save jseverson/1270675 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function catchallAction($slug) | |
{ | |
//lets see if its a program slug | |
if ($program = $this->get('exercise.program.repository.program')->findOneBySlug($slug)) { | |
//we want to enforce this request to be secure but only on production | |
if (!$this->get('request')->isSecure()) { | |
//redirect to same url but on secure port | |
} | |
return $this->forward('ProgramBundle:ProgramSignup:sales', array('slug' => $slug)); | |
} | |
throw new NotFoundHttpException(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment