title: Symfony 2 dynamically load routes
body: <p>I'm going to create a modules system in my Symfony 2 app. Each module will be a bundle.</p>
  
  <p>I don't know how to I can dynamically (in my service code) load routes from file (eg. <em>AcmeSomeModuleBundle/Resources/config/routing.yml</em>) and apply them with some prefix (or host). Like it's done by embedding code below in <em>app/config/routing.yml</em>:</p>
  
  <pre><code>berg_applications:
      resource: "@AcmeSomeModuleBundle/Resources/config/routing.yml"
      host: foobar.com
  </code></pre>
  
  <p>Any solutions?</p>