[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/dependency_maps/ -> transport_deps.php (source)

   1  <?php
   2  
   3  Swift_DependencyContainer::getInstance()
   4      ->register('transport.localdomain')
   5      // As SERVER_NAME can come from the user in certain configurations, check that
   6      // it does not contain forbidden characters (see RFC 952 and RFC 2181). Use
   7      // preg_replace() instead of preg_match() to prevent DoS attacks with long host names.
   8      ->asValue(!empty($_SERVER['SERVER_NAME']) && '' === preg_replace('/(?:^\[)?[a-zA-Z0-9-:\]_]+\.?/', '', $_SERVER['SERVER_NAME']) ? trim($_SERVER['SERVER_NAME'], '[]') : '127.0.0.1')
   9  
  10      ->register('transport.smtp')
  11      ->asNewInstanceOf('Swift_Transport_EsmtpTransport')
  12      ->withDependencies([
  13          'transport.buffer',
  14          'transport.smtphandlers',
  15          'transport.eventdispatcher',
  16          'transport.localdomain',
  17          'address.idnaddressencoder',
  18      ])
  19  
  20      ->register('transport.smtp_SMTPUTF8')
  21      ->asNewInstanceOf('Swift_Transport_EsmtpTransport')
  22      ->withDependencies([
  23          'transport.buffer',
  24          'transport.smtputf8handlers',
  25          'transport.eventdispatcher',
  26          'transport.localdomain',
  27          'address.utf8addressencoder',
  28      ])
  29  
  30      ->register('transport.sendmail')
  31      ->asNewInstanceOf('Swift_Transport_SendmailTransport')
  32      ->withDependencies([
  33          'transport.buffer',
  34          'transport.eventdispatcher',
  35          'transport.localdomain',
  36      ])
  37  
  38      ->register('transport.loadbalanced')
  39      ->asNewInstanceOf('Swift_Transport_LoadBalancedTransport')
  40  
  41      ->register('transport.failover')
  42      ->asNewInstanceOf('Swift_Transport_FailoverTransport')
  43  
  44      ->register('transport.spool')
  45      ->asNewInstanceOf('Swift_Transport_SpoolTransport')
  46      ->withDependencies(['transport.eventdispatcher'])
  47  
  48      ->register('transport.null')
  49      ->asNewInstanceOf('Swift_Transport_NullTransport')
  50      ->withDependencies(['transport.eventdispatcher'])
  51  
  52      ->register('transport.buffer')
  53      ->asNewInstanceOf('Swift_Transport_StreamBuffer')
  54      ->withDependencies(['transport.replacementfactory'])
  55  
  56      ->register('transport.smtphandlers')
  57      ->asArray()
  58      ->withDependencies(['transport.authhandler'])
  59  
  60      ->register('transport.smtputf8handlers')
  61      ->asArray()
  62      ->withDependencies(['transport.authhandler', 'transport.smtputf8handler'])
  63  
  64      ->register('transport.authhandler')
  65      ->asNewInstanceOf('Swift_Transport_Esmtp_AuthHandler')
  66      ->withDependencies(['transport.authhandlers'])
  67  
  68      ->register('transport.authhandlers')
  69      ->asArray()
  70      ->withDependencies([
  71          'transport.crammd5auth',
  72          'transport.loginauth',
  73          'transport.plainauth',
  74          'transport.ntlmauth',
  75          'transport.xoauth2auth',
  76      ])
  77  
  78      ->register('transport.smtputf8handler')
  79      ->asNewInstanceOf('Swift_Transport_Esmtp_SmtpUtf8Handler')
  80  
  81      ->register('transport.8bitmimehandler')
  82      ->asNewInstanceOf('Swift_Transport_Esmtp_EightBitMimeHandler')
  83      ->addConstructorValue('8BITMIME')
  84  
  85      ->register('transport.crammd5auth')
  86      ->asNewInstanceOf('Swift_Transport_Esmtp_Auth_CramMd5Authenticator')
  87  
  88      ->register('transport.loginauth')
  89      ->asNewInstanceOf('Swift_Transport_Esmtp_Auth_LoginAuthenticator')
  90  
  91      ->register('transport.plainauth')
  92      ->asNewInstanceOf('Swift_Transport_Esmtp_Auth_PlainAuthenticator')
  93  
  94      ->register('transport.xoauth2auth')
  95      ->asNewInstanceOf('Swift_Transport_Esmtp_Auth_XOAuth2Authenticator')
  96  
  97      ->register('transport.ntlmauth')
  98      ->asNewInstanceOf('Swift_Transport_Esmtp_Auth_NTLMAuthenticator')
  99  
 100      ->register('transport.eventdispatcher')
 101      ->asNewInstanceOf('Swift_Events_SimpleEventDispatcher')
 102  
 103      ->register('transport.replacementfactory')
 104      ->asSharedInstanceOf('Swift_StreamFilters_StringReplacementFilterFactory')
 105  
 106      ->register('address.idnaddressencoder')
 107      ->asNewInstanceOf('Swift_AddressEncoder_IdnAddressEncoder')
 108  
 109      ->register('address.utf8addressencoder')
 110      ->asNewInstanceOf('Swift_AddressEncoder_Utf8AddressEncoder')
 111  ;


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1