3 require_once dirname(__FILE__
) . '/../mime_types.php';
5 Swift_DependencyContainer
::getInstance()
7 -> register('properties.charset')
10 -> register('mime.message')
11 -> asNewInstanceOf('Swift_Mime_SimpleMessage')
12 -> withDependencies(array(
14 'mime.qpcontentencoder',
19 -> register('mime.part')
20 -> asNewInstanceOf('Swift_Mime_MimePart')
21 -> withDependencies(array(
23 'mime.qpcontentencoder',
28 -> register('mime.attachment')
29 -> asNewInstanceOf('Swift_Mime_Attachment')
30 -> withDependencies(array(
32 'mime.base64contentencoder',
35 -> addConstructorValue($swift_mime_types)
37 -> register('mime.embeddedfile')
38 -> asNewInstanceOf('Swift_Mime_EmbeddedFile')
39 -> withDependencies(array(
41 'mime.base64contentencoder',
44 -> addConstructorValue($swift_mime_types)
46 -> register('mime.headerfactory')
47 -> asNewInstanceOf('Swift_Mime_SimpleHeaderFactory')
48 -> withDependencies(array(
49 'mime.qpheaderencoder',
50 'mime.rfc2231encoder',
54 -> register('mime.headerset')
55 -> asNewInstanceOf('Swift_Mime_SimpleHeaderSet')
56 -> withDependencies(array('mime.headerfactory', 'properties.charset'))
58 -> register('mime.qpheaderencoder')
59 -> asNewInstanceOf('Swift_Mime_HeaderEncoder_QpHeaderEncoder')
60 -> withDependencies(array('mime.charstream'))
62 -> register('mime.charstream')
63 -> asNewInstanceOf('Swift_CharacterStream_NgCharacterStream')
64 -> withDependencies(array('mime.characterreaderfactory', 'properties.charset'))
66 -> register('mime.bytecanonicalizer')
67 -> asSharedInstanceOf('Swift_StreamFilters_ByteArrayReplacementFilter')
68 -> addConstructorValue(array(array(0x0D, 0x0A), array(0x0D), array(0x0A)))
69 -> addConstructorValue(array(array(0x0A), array(0x0A), array(0x0D, 0x0A)))
71 -> register('mime.characterreaderfactory')
72 -> asSharedInstanceOf('Swift_CharacterReaderFactory_SimpleCharacterReaderFactory')
74 -> register('mime.qpcontentencoder')
75 -> asNewInstanceOf('Swift_Mime_ContentEncoder_QpContentEncoder')
76 -> withDependencies(array('mime.charstream', 'mime.bytecanonicalizer'))
78 -> register('mime.7bitcontentencoder')
79 -> asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder')
80 -> addConstructorValue('7bit')
81 -> addConstructorValue(true)
83 -> register('mime.8bitcontentencoder')
84 -> asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder')
85 -> addConstructorValue('8bit')
86 -> addConstructorValue(true)
88 -> register('mime.base64contentencoder')
89 -> asSharedInstanceOf('Swift_Mime_ContentEncoder_Base64ContentEncoder')
91 -> register('mime.rfc2231encoder')
92 -> asNewInstanceOf('Swift_Encoder_Rfc2231Encoder')
93 -> withDependencies(array('mime.charstream'))
97 unset($swift_mime_types);