title: Symfony2 Compiled Assetic YUI
body: <p>I've created a new environment called 'staging' which is pretty much the same config as the 'production'  environment and I'm trying to use yui_compressor on my css and js files. Please see an example of my css files below:</p>
  
  <pre><code>{% stylesheets output='css/compiled/main.css' filter='?yui_css' filter='cssrewrite'
      'bundles/xyz/lib/frontend/css/social_foundicons.css'
      'bundles/xyz/lib/frontend/css/general_enclosed_foundicons.css'
      'bundles/xyz/lib/frontend/css/general_foundicons.css'
      'bundles/xyz/lib/frontend/coda/css/coda-slider.css'
      %}
      &lt;link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" /&gt;
      {% endstylesheets %}
  
      &lt;!-- Google fonts --&gt;
      {% stylesheets output='css/compiled/fonts.css' filter='?yui_css' filter='cssrewrite'
      'bundles/xyz/lib/frontend/css/fonts.css'
      %}
      &lt;link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" /&gt;
      {% endstylesheets %}
  
      &lt;!-- Included CSS Files --&gt;
      {% stylesheets output='css/compiled/style.css' filter='?yui_css' filter='cssrewrite'
      'bundles/xyz/lib/frontend/css/style.css'
      %}
      &lt;link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" /&gt;
      {% endstylesheets %}
  </code></pre>
  
  <p>When deploying using capistrano the following files are created:</p>
  
  <ul>
  <li>/web/css/compiled/fonts.css</li>
  <li>/web/css/compiled/main.css</li>
  <li>/web/css/compiled/style.css</li>
  </ul>
  
  <p>This I assume is correct, however the header in my application renders the following:</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" media="screen" href="/css/compiled/main_social_foundicons_1.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" media="screen" href="/css/compiled/main_general_enclosed_foundicons_2.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" media="screen" href="/css/compiled/main_general_foundicons_3.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" media="screen" href="/css/compiled/main_coda-slider_4.css" /&gt;
  
  &lt;link rel="stylesheet" type="text/css" media="screen" href="/css/compiled/fonts_fonts_1.css" /&gt;
  
  &lt;link rel="stylesheet" type="text/css" media="screen" href="/css/compiled/style_style_1.css" /&gt;
  </code></pre>
  
  <p>None of the above files exist on the server and I assume it should be calling /css/compiled/fonts.css, main.css and style.css.</p>
  
  <p>Anyone know why it's doing this?</p>
  
  <p>Thanks</p>