<p dir="auto">I have a Symfony 2.6 project that uses the Symfony3 directory structure. When I clear/warmup for the first time the compiled DI container contains the wrong cache directory. E.g:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'kernel.cache_dir' =&gt; (dirname(dirname(dirname(__DIR__))).'/app/../var/cache/de_'),"><pre class="notranslate"><code class="notranslate">'kernel.cache_dir' =&gt; (dirname(dirname(dirname(__DIR__))).'/app/../var/cache/de_'),
</code></pre></div>
<p dir="auto">While I have set my environment as "dev", not as "de_". This causes all sorts of problems and causes the application to fail due to missing directories.</p>
<p dir="auto">I just upgraded project to 2.6.1 from 2.5.8.</p>
<p dir="auto">Running <code class="notranslate">php bin/console cache:clear</code> for a second time fails. <strong>Its reproducible with vanilla installation.</strong> Here is the screenshot:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d0d7f3d0182d5426079d9c4441ee4ced94c4c5513f1756ce1d8717315ad71482/687474703a2f2f692e696d6775722e636f6d2f423165433469412e706e67"><img src="https://camo.githubusercontent.com/d0d7f3d0182d5426079d9c4441ee4ced94c4c5513f1756ce1d8717315ad71482/687474703a2f2f692e696d6775722e636f6d2f423165433469412e706e67" alt="26" data-canonical-src="http://i.imgur.com/B1eC4iA.png" style="max-width: 100%;"></a></p>
<p dir="auto">I'm running these commands on Ubuntu 14.10, it also reproducible with (production servers) Debian Wheezy 7.6 with <code class="notranslate">SYMFONY_ENV=prod</code>.</p>
<p dir="auto"><a href="https://twitter.com/oungur/status/541187828827578369" rel="nofollow">https://twitter.com/oungur/status/541187828827578369</a></p>