title: Symfony2 Swiftmailer Service Definition does not Exist
body: <p>I am trying to override the default transport for Swiftmailer by using my own service. This would allow me to use the same method calls as you would with Swiftmailer such as setTo, setSubject,attach, etc. However, I am getting the following error message:</p>
  
  <pre><code>The service definition "swiftmailer.mailer.transport.test.mailer" does not exist.
  </code></pre>
  
  <p>I am currently using Symfony 2.5 with Swiftmailer Bundle ~2.3. Please see my src/Bundle/ApplicationBundle/Resources/config/services.xml file and my app/config/config.yml file parts associated with this issue:</p>
  
  <p><strong>services.xml</strong></p>
  
  <pre><code>&lt;parameters&gt;
      &lt;parameter key="test.mailer.class"&gt;TEST\Bundle\TestBundle\Mail\MailQueueTransport&lt;/parameter&gt;
  &lt;/parameters&gt;
  
  &lt;services&gt;
      &lt;service id="test.mailer" class="%test.mailer.class%"&gt;
          &lt;argument type="service" id="service_container"/&gt;
      &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p><strong>config.yml</strong></p>
  
  <pre><code>imports:
      - { resource: "@TESTTestBundle/Resources/config/services.xml"}
  
  swiftmailer:
      transport: "test.mailer"
  </code></pre>
  
  <p>All other services work just fine and this method worked in Symfony 2.1.3 with Swiftmailer Bundle 2.1.0. The goal is the use the built in Swiftmailer functionality but to place the emails into a database queue for processing rather than send direct emails (batch processing for high email volumes).</p>
  
  <p>Any assistance would be appreciated. </p>