Route name for url generation when using annotations in Symfony 2
Let's say I have an action:

    /**
     * @Route("/current")
     *
     * @return Response
     */
    public function currentAction() 
    {
    }

And now I need to generate url to this action. `$this->generateUrl()` controller's method accepts route name as an argument. Obviously I have no such name as long as I use annotations. 

Any workarounds for this?
Route name for url generation when using annotations in Symfony 2
===

Let's say I have an action:

    /**
     * @Route("/current")
     *
     * @return Response
     */
    public function currentAction() 
    {
    }

And now I need to generate url to this action. `$this->generateUrl()` controller's method accepts route name as an argument. Obviously I have no such name as long as I use annotations. 

Any workarounds for this?