title: Pass the 'container' as an argument to service
body: <p>I am making services and want to pass 'container' as argument.
  because I want to use like this </p>
  
  <pre><code>$user = $this-&gt;container-&gt;get('security.context')-&gt;getToken()-&gt;getUser();
  </code></pre>
  
  <p>my Acme/MemberBundle/Resouces/confit/services.xml is like this below.</p>
  
  <p>
    </p>
  
  <pre><code>&lt;services&gt;
      &lt;service id="acme.memberbundle.calendar_listener" class="Acme\MemberBundle\EventListener\CalendarEventListener"&gt;
          &lt;argument type="service" id="container" /&gt;
          &lt;tag name="kernel.event_listener" event="calendar.load_events" method="loadEvents" /&gt;
      &lt;/service&gt;
  
  &lt;/services&gt;
  </code></pre>
  
  <p></p>
  
  <p>but it says 
  'The service "acme.memberbundle.calendar_listener" has a dependency on a non-existent service "container"'.</p>
  
  <p>How can I pass my container to services?</p>
  
  <p>this problem is related <a href="https://stackoverflow.com/questions/17020733/how-to-get-userid-from-eventlistener-which-are-called-from-ajax">How to get userid from eventlistener which are called from AJAX</a></p>