Skip to content

Instantly share code, notes, and snippets.

@yurio
Last active September 24, 2015 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurio/31a5e3e9ab76d8d0842a to your computer and use it in GitHub Desktop.
Save yurio/31a5e3e9ab76d8d0842a to your computer and use it in GitHub Desktop.
<?php
namespace Acme\Bundle\AnonymousBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class TestController extends Controller
{
/**
* @Route("/test", name="anontest")
* @Template()
*/
public function indexAction()
{
return [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment