transport_deps.php 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. Swift_DependencyContainer::getInstance()
  3. -> register('transport.smtp')
  4. -> asNewInstanceOf('Swift_Transport_EsmtpTransport')
  5. -> withDependencies(array(
  6. 'transport.buffer',
  7. array('transport.authhandler'),
  8. 'transport.eventdispatcher'
  9. ))
  10. -> register('transport.sendmail')
  11. -> asNewInstanceOf('Swift_Transport_SendmailTransport')
  12. -> withDependencies(array(
  13. 'transport.buffer',
  14. 'transport.eventdispatcher'
  15. ))
  16. -> register('transport.mail')
  17. -> asNewInstanceOf('Swift_Transport_MailTransport')
  18. -> withDependencies(array('transport.mailinvoker', 'transport.eventdispatcher'))
  19. -> register('transport.loadbalanced')
  20. -> asNewInstanceOf('Swift_Transport_LoadBalancedTransport')
  21. -> register('transport.failover')
  22. -> asNewInstanceOf('Swift_Transport_FailoverTransport')
  23. -> register('transport.spool')
  24. -> asNewInstanceOf('Swift_Transport_SpoolTransport')
  25. -> withDependencies(array('transport.eventdispatcher'))
  26. -> register('transport.null')
  27. -> asNewInstanceOf('Swift_Transport_NullTransport')
  28. -> withDependencies(array('transport.eventdispatcher'))
  29. -> register('transport.mailinvoker')
  30. -> asSharedInstanceOf('Swift_Transport_SimpleMailInvoker')
  31. -> register('transport.buffer')
  32. -> asNewInstanceOf('Swift_Transport_StreamBuffer')
  33. -> withDependencies(array('transport.replacementfactory'))
  34. -> register('transport.authhandler')
  35. -> asNewInstanceOf('Swift_Transport_Esmtp_AuthHandler')
  36. -> withDependencies(array(
  37. array(
  38. 'transport.crammd5auth',
  39. 'transport.loginauth',
  40. 'transport.plainauth'
  41. )
  42. ))
  43. -> register('transport.crammd5auth')
  44. -> asNewInstanceOf('Swift_Transport_Esmtp_Auth_CramMd5Authenticator')
  45. -> register('transport.loginauth')
  46. -> asNewInstanceOf('Swift_Transport_Esmtp_Auth_LoginAuthenticator')
  47. -> register('transport.plainauth')
  48. -> asNewInstanceOf('Swift_Transport_Esmtp_Auth_PlainAuthenticator')
  49. -> register('transport.eventdispatcher')
  50. -> asNewInstanceOf('Swift_Events_SimpleEventDispatcher')
  51. -> register('transport.replacementfactory')
  52. -> asSharedInstanceOf('Swift_StreamFilters_StringReplacementFilterFactory')
  53. ;