Last active
December 14, 2015 15:58
-
-
Save darraghenright/5111500 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
<?php | |
// omitted namespace declaration and imports for brevity | |
class HomeController extends Controller | |
{ | |
/** | |
* Home page | |
* | |
* @Route("/", name="home_index") | |
* @Secure(roles="ROLE_USER") | |
* @Method("get") | |
* @Template() | |
*/ | |
public function indexAction() | |
{ | |
return array(); | |
} | |
/** | |
* Handle form post | |
* | |
* @Route("/", name="home_form") | |
* @Secure(roles="ROLE_USER") | |
* @Method("post") | |
* @Template() | |
*/ | |
public function handleFormAction() | |
{ | |
// implement... | |
return array(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment