title: How to rename a bundle in symfony?
body: <p>My bundle is located at <code>src/Cinergy/Bundle/ComponentBundle/CinergyComponentBundle.php</code> and the logical name of the bundle is <code>'CinergyComponentBundle'</code>.</p>
  
  <p>Since I did not stick to the naming convention of the company I have to change the logcial name of the bundle. Lets asume I have to rename it to <code>'XXXCinergyComponentBundle'</code></p>
  
  <p>What files do I need to change?</p>
  
  <p>I tried renaming the <code>CinergyComponentBundle.php</code> file and the containing class into <code>XXXCinergyComponentBundle.php</code>. I also changed the reference in AppKernel.</p>
  
  <p>Unfortunately this does not work. When I try to clear the cache I get this error message:</p>
  
  <pre><code>[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]                                   
  The service "cinergy.people.direct.php" has a dependency on a non-existent service "cinergy.work.registry". 
  </code></pre>
  
  <p>This two services do belong to the bundle with the new name. This leads me to the conclusion that I'm missing something in the renaming process.</p>
  
  <p>Any ideas?</p>