I have my routes defined using annotations in my SF2 application, however there are a handful of pages which although they have a distinct route and Twig template they require no controller code whatsoever which leads to empty methods such as this:
/**
* @Route(
* "/courselimit",
* name = "course_limit"
* )
* @Template("CRMPiccoBundle:Course:Limit.html.twig")
*
* @param Request $request
*
* @throws \Exception
*/
public function courseLimitAction(Request $request)
{
}
This, to me, seems pointless and messy. Is there a way to avoid this in SF2 without converting all my routes to be managed in YAML files?