title: Circular reference detected for service "security.context"
body: <p>I tried to inject the templating service and this is what I get.</p>
  
  <pre><code>&lt;service id="myproject_notification.service.mail" class="%myproject_notification.service.mail.class%"&gt;
      &lt;argument type="service" id="mailer" /&gt;
      &lt;argument type="service" id="templating" /&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p><img src="https://cloud.githubusercontent.com/assets/2699647/3228806/6c76c6fe-f08b-11e3-8624-eaeb7f6b406c.png" alt="2014-06-10 12-37-10"></p>
  
  <p>If I comment, or remove, the templating service from the dependency, everything is working well. I saw old issues about that, but it seems I'm the only one at the moment experiencing this. Am I doing something wrong?</p>
  
  <p><strong>Composer.json</strong></p>
  
  <pre><code>"symfony/symfony": "~2.4",
  "twig/extensions": "~1.0",
  "symfony/assetic-bundle": "~2.3",
  "symfony/swiftmailer-bundle": "~2.3",
  "symfony/monolog-bundle": "~2.4",
  "sensio/distribution-bundle": "~2.3",
  "sensio/framework-extra-bundle": "~3.0",
  "sensio/generator-bundle": "~2.3",
  "incenteev/composer-parameter-handler": "~2.0",
  </code></pre>
  
  <p><strong>Composer.lock</strong></p>
  
  <pre><code>"name": "symfony/symfony",
  "version": "v2.5.0",
  ...
  "name": "twig/twig",
  "version": "v1.15.1",
  </code></pre>