You need to define an implementation for the getRouteDefaults() method. Most of the
time, this method should define some PHP callable to be called for the route
(a controller in MVC speak).
The @Route annotation can be set on the class (for global parameters),
and on each method.
The @Route annotation main value is the route pattern. The annotation also
recognizes three parameters: requirements, options, and name. The name parameter
is mandatory. Here is an example of how you should be able to use it:
**
* @Route("/Blog")
* /
class Blog
{
**
* @Route("/", name="blog_index")
* /
public function index()
{
}
**
* @Route("/:id", name="blog_post", requirements = {"id" = "\d+"})
* /
public function show()
{
}
}