Created
November 15, 2012 20:13
-
-
Save elnur/4080968 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 | |
namespace Elnur\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use JMS\DiExtraBundle\Annotation\Service; | |
/** | |
* @Service("main_controller") | |
* @Route(service="main_controller") | |
*/ | |
class MainController | |
{ | |
/** | |
* @Route("/") | |
* @Template | |
*/ | |
public function mainAction() | |
{ | |
return []; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment