Skip to content

Instantly share code, notes, and snippets.

@elnur
Created November 15, 2012 20:13
Show Gist options
  • Save elnur/4080968 to your computer and use it in GitHub Desktop.
Save elnur/4080968 to your computer and use it in GitHub Desktop.
<?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