title: Symfony2 get controller base route name
body: <p>I'm trying to get the Controller Class base route from within one of my methods. :</p>
  
  <pre><code>    /**
       * @Route("/buy-stuff", name="buy-stuff")
       * @Route("/sell-stuff" , name="for-sale")
       */
      class SalesController extends Controller
      {
          /**
           * @Route("/", name="salesindex")
           * @Template()
           */
           public function indexAction()
           {  
              //Get the entry route here. eg: 'buy-stuff' or 'sell-stuff'     
           }
  
  
       }
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre><code>$this-&gt;container-&gt;get('router')-&gt;getContext()
  </code></pre>
  
  <p>But there is nothing useful in there as far as I can see:</p>
  
  <p><a href="http://api.symfony.com/2.0/Symfony/Component/Routing/RequestContext.html" rel="nofollow">Request Context</a></p>
  
  <p>Also, you can get a route if you know the name:</p>
  
  <p><a href="http://api.symfony.com/2.0/Symfony/Component/Routing/RouteCollection.html" rel="nofollow">Route Collection</a></p>
  
  <p>But obviously, I don't in this instance. </p>