title: Symfony 2/Sylius - Bundle loaded in AppKernel but can't load resource
body: <p>I've generated a bundle (<code>@ShopfishApiBundle</code>) using <code>generate:bundle</code> like I have many times. It has automatically registered the bundle in the<code>AppKernel</code> and it added the loading of the bundle's <code>routing.yml</code> to the <code>app/Resource/config/routing.yml</code> as well. This is within a <code>Sylius</code> installation running <code>Symfony 2.3</code></p>
  
  <p>The <code>@ShopfishApiBundle/Resource/config/routing.yml</code> looks like this:</p>
  
  <pre><code>shopfish_api:
      resource: "@ShopfishApiBundle/Controller/ProductController.php"
      type:     annotation
  </code></pre>
  
  <p>The product controller looks like this:</p>
  
  <pre><code>namespace Shopfish\Bundle\ApiBundle\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  
  /**
   * @Route("/api")
   */    
  class ProductController extends Controller
  {
      /**
       * @Route("/products")
       * @Method({"GET"})
       *
       * @Rest\View
       */
      public function allAction()
      {
          $products = array();
  
          return array('products' =&gt; $products);
      }
  }
  </code></pre>
  
  <p>Loading any page instantly yields the below exception:</p>
  
  <pre><code>FileLoaderLoadException: Cannot load resource "@ShopfishApiBundle/Controller/". Make sure the "ShopfishApiBundle" bundle is correctly registered and loaded in the application kernel class.
  </code></pre>
  
  <p>In another Symfony2 (version 2.4) application I've made a similar bundle and this worked without error, I'm thinking something in Sylius messes this up. Do you know where I might solve this issue?</p>
  
  <p>NOTE: I did a little test to see if a direct-no-annotations code snippet worked, and that seems to work. Though I want to use the FOS Rest bundle, using Annotations for Routing. </p>
  
  <pre><code>sf_api_controller:
      pattern: /no-annotation-test
      defaults:
           _controller: ShopfishApiBundle:Product:all
  </code></pre>