title: Error passing ContainerInterface as a parameter
body: <p>Why am I getting this error when trying to get the <code>ContainerInterface</code>:</p>
  
  <pre><code>ERROR - exception 'ErrorException' with message 'Catchable Fatal Error: Argument 5 passed to Project\InvitationsBundle\Invitations::__construct() must implement interface Symfony\Component\DependencyInjection\ContainerInterface, none given, called in /www/project/app/cache/dev/appDevDebugProjectContainer.php on line 1709 and defined in /www/project/src/Project/InvitationsBundle/Invitations.php line 23' 
  </code></pre>
  
  <p>And the error comes when adding <code>ContainerInterface</code> to the construct method:</p>
  
  <pre><code>&lt;?php
  
  namespace Pro\InvitationsBundle;
  
  use Pro\CommunityBundle\Entity\Community;
  use Pro\InvitationsBundle\Entity\Invitation;
  use Doctrine\Bundle\DoctrineBundle\Registry;
  use Symfony\Component\Translation\TranslatorInterface;
  use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
  use Pro\UserBundle\Entity\User;
  use Symfony\Component\DependencyInjection\ContainerInterface;
  
  class Invitations
  {
      private $mailer;
      private $translator;
      private $templating;
      private $doctrine;
      private $container;
  
  
      function __construct(\Swift_Mailer $mailer, TranslatorInterface $translator, EngineInterface $templating,
          Registry $doctrine, ContainerInterface $container)
      {
          $this-&gt;mailer = $mailer;
          $this-&gt;translator = $translator;
          $this-&gt;templating = $templating;
          $this-&gt;doctrine = $doctrine;
          $this-&gt;container = $container;
      }
      ...
  }
  </code></pre>