[ Index ]

MailPress 544

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

title

Body

[close]

/mp-includes/Swiftmailer/dependency_maps/ -> mime_deps.php (source)

   1  <?php
   2  
   3  require dirname(__FILE__).'/../mime_types.php';
   4  
   5  Swift_DependencyContainer::getInstance()
   6      ->register('properties.charset')
   7      ->asValue('utf-8')
   8  
   9      ->register('mime.grammar')
  10      ->asSharedInstanceOf('Swift_Mime_Grammar')
  11  
  12      ->register('mime.message')
  13      ->asNewInstanceOf('Swift_Mime_SimpleMessage')
  14      ->withDependencies(array(
  15          'mime.headerset',
  16          'mime.qpcontentencoder',
  17          'cache',
  18          'mime.grammar',
  19          'properties.charset',
  20      ))
  21  
  22      ->register('mime.part')
  23      ->asNewInstanceOf('Swift_Mime_MimePart')
  24      ->withDependencies(array(
  25          'mime.headerset',
  26          'mime.qpcontentencoder',
  27          'cache',
  28          'mime.grammar',
  29          'properties.charset',
  30      ))
  31  
  32      ->register('mime.attachment')
  33      ->asNewInstanceOf('Swift_Mime_Attachment')
  34      ->withDependencies(array(
  35          'mime.headerset',
  36          'mime.base64contentencoder',
  37          'cache',
  38          'mime.grammar',
  39      ))
  40      ->addConstructorValue($swift_mime_types)
  41  
  42      ->register('mime.embeddedfile')
  43      ->asNewInstanceOf('Swift_Mime_EmbeddedFile')
  44      ->withDependencies(array(
  45          'mime.headerset',
  46          'mime.base64contentencoder',
  47          'cache',
  48          'mime.grammar',
  49      ))
  50      ->addConstructorValue($swift_mime_types)
  51  
  52      ->register('mime.headerfactory')
  53      ->asNewInstanceOf('Swift_Mime_SimpleHeaderFactory')
  54      ->withDependencies(array(
  55              'mime.qpheaderencoder',
  56              'mime.rfc2231encoder',
  57              'mime.grammar',
  58              'properties.charset',
  59          ))
  60  
  61      ->register('mime.headerset')
  62      ->asNewInstanceOf('Swift_Mime_SimpleHeaderSet')
  63      ->withDependencies(array('mime.headerfactory', 'properties.charset'))
  64  
  65      ->register('mime.qpheaderencoder')
  66      ->asNewInstanceOf('Swift_Mime_HeaderEncoder_QpHeaderEncoder')
  67      ->withDependencies(array('mime.charstream'))
  68  
  69      ->register('mime.base64headerencoder')
  70      ->asNewInstanceOf('Swift_Mime_HeaderEncoder_Base64HeaderEncoder')
  71      ->withDependencies(array('mime.charstream'))
  72  
  73      ->register('mime.charstream')
  74      ->asNewInstanceOf('Swift_CharacterStream_NgCharacterStream')
  75      ->withDependencies(array('mime.characterreaderfactory', 'properties.charset'))
  76  
  77      ->register('mime.bytecanonicalizer')
  78      ->asSharedInstanceOf('Swift_StreamFilters_ByteArrayReplacementFilter')
  79      ->addConstructorValue(array(array(0x0D, 0x0A), array(0x0D), array(0x0A)))
  80      ->addConstructorValue(array(array(0x0A), array(0x0A), array(0x0D, 0x0A)))
  81  
  82      ->register('mime.characterreaderfactory')
  83      ->asSharedInstanceOf('Swift_CharacterReaderFactory_SimpleCharacterReaderFactory')
  84  
  85      ->register('mime.safeqpcontentencoder')
  86      ->asNewInstanceOf('Swift_Mime_ContentEncoder_QpContentEncoder')
  87      ->withDependencies(array('mime.charstream', 'mime.bytecanonicalizer'))
  88  
  89      ->register('mime.rawcontentencoder')
  90      ->asNewInstanceOf('Swift_Mime_ContentEncoder_RawContentEncoder')
  91  
  92      ->register('mime.nativeqpcontentencoder')
  93      ->withDependencies(array('properties.charset'))
  94      ->asNewInstanceOf('Swift_Mime_ContentEncoder_NativeQpContentEncoder')
  95  
  96      ->register('mime.qpcontentencoderproxy')
  97      ->asNewInstanceOf('Swift_Mime_ContentEncoder_QpContentEncoderProxy')
  98      ->withDependencies(array('mime.safeqpcontentencoder', 'mime.nativeqpcontentencoder', 'properties.charset'))
  99  
 100      ->register('mime.7bitcontentencoder')
 101      ->asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder')
 102      ->addConstructorValue('7bit')
 103      ->addConstructorValue(true)
 104  
 105      ->register('mime.8bitcontentencoder')
 106      ->asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder')
 107      ->addConstructorValue('8bit')
 108      ->addConstructorValue(true)
 109  
 110      ->register('mime.base64contentencoder')
 111      ->asSharedInstanceOf('Swift_Mime_ContentEncoder_Base64ContentEncoder')
 112  
 113      ->register('mime.rfc2231encoder')
 114      ->asNewInstanceOf('Swift_Encoder_Rfc2231Encoder')
 115      ->withDependencies(array('mime.charstream'))
 116  
 117      // As of PHP 5.4.7, the quoted_printable_encode() function behaves correctly.
 118      // see https://github.com/php/php-src/commit/18bb426587d62f93c54c40bf8535eb8416603629
 119      ->register('mime.qpcontentencoder')
 120      ->asAliasOf(version_compare(phpversion(), '5.4.7', '>=') ? 'mime.qpcontentencoderproxy' : 'mime.safeqpcontentencoder')
 121  ;
 122  
 123  unset($swift_mime_types);


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1