title: How to override route in Symfony2
body: <p>It's not a duplicate of <a href="https://stackoverflow.com/questions/13270484/override-single-route-in-symfony2">override single route in symfony2</a>. Please be patient and read my question carefully.</p>
  
  <p>My problem is differs from the question above.
  So, my Symfony app has a standard structure. BUT it's configured in a specific way.</p>
  
  <ul>
  <li><p>app/config/routing.yml contains several bundles routes, for example :</p>
  
  <pre><code>_project_custom1:
      resource: "@ProjectCustom1Bundle/Resources/config/routing.yml"
      prefix:   /custom1
  _project_custom2:
      resource: "@ProjectCustom2Bundle/Resources/config/routing.yml"
      prefix:   /custom2
  </code></pre></li>
  <li><p><strong>src/</strong> directory has two bundles and next structure, e.g. </p>
  
  <p><code>Common/AdminBundle/Resources/config/routing.yml</code>
  <code>Common/AdminBundle/Resources/config/routing_dashboard.yml</code></p>
  
  <p><code>routing.yml</code> contains next lines:</p>
  
  <p><code>admin_dashboard_content:
  resource: "@CommonAdminBundle/Resources/config/routing_dashboard.yml"
  prefix:   /dashboard</code></p>
  
  <p><code>routing_dashboard.yml</code> contains:</p>
  
  <p><code>admin_dashboard_license_content:
  path:     /license-content
  defaults: { _controller: CommonAdminBundle:Dashboard:licenseContent }</code></p></li>
  </ul>
  
  <p>Next bundle is Custom bundle. How can extend <code>DashboardController</code>,  override <code>licenseContentAction</code> and override only one (<code>/license-content</code>) route and make Symfony use my Custom bundle configuration?</p>
  
  <p>Copying the same structure is not working.
  According to my explanation I wrote something like this:</p>
  
  <pre><code>&lt;?php
  namespace Custom\Custom1\Controller;
  use Common\AdminBundle\Controller\DashboardController as BaseController;
  class DashboardController extends BaseController
  {
      public function licenseContentAction()
      {
         //return parent::licenseContentAction();
         die("HELLO!");
      }
  }
  </code></pre>
  
  <p>How I can build route file for make extended method working?</p>