Added feature #15998: Create a new API to send mails based on SwiftMailer to replace...
[Packages/TYPO3.CMS.git] / typo3 / contrib / swiftmailer / dependency_maps / mime_deps.php
1 <?php
2
3 require_once dirname(__FILE__) . '/../mime_types.php';
4
5 Swift_DependencyContainer::getInstance()
6
7 -> register('properties.charset')
8 -> asValue('utf-8')
9
10 -> register('mime.message')
11 -> asNewInstanceOf('Swift_Mime_SimpleMessage')
12 -> withDependencies(array(
13 'mime.headerset',
14 'mime.qpcontentencoder',
15 'cache',
16 'properties.charset'
17 ))
18
19 -> register('mime.part')
20 -> asNewInstanceOf('Swift_Mime_MimePart')
21 -> withDependencies(array(
22 'mime.headerset',
23 'mime.qpcontentencoder',
24 'cache',
25 'properties.charset'
26 ))
27
28 -> register('mime.attachment')
29 -> asNewInstanceOf('Swift_Mime_Attachment')
30 -> withDependencies(array(
31 'mime.headerset',
32 'mime.base64contentencoder',
33 'cache'
34 ))
35 -> addConstructorValue($swift_mime_types)
36
37 -> register('mime.embeddedfile')
38 -> asNewInstanceOf('Swift_Mime_EmbeddedFile')
39 -> withDependencies(array(
40 'mime.headerset',
41 'mime.base64contentencoder',
42 'cache'
43 ))
44 -> addConstructorValue($swift_mime_types)
45
46 -> register('mime.headerfactory')
47 -> asNewInstanceOf('Swift_Mime_SimpleHeaderFactory')
48 -> withDependencies(array(
49 'mime.qpheaderencoder',
50 'mime.rfc2231encoder',
51 'properties.charset'
52 ))
53
54 -> register('mime.headerset')
55 -> asNewInstanceOf('Swift_Mime_SimpleHeaderSet')
56 -> withDependencies(array('mime.headerfactory', 'properties.charset'))
57
58 -> register('mime.qpheaderencoder')
59 -> asNewInstanceOf('Swift_Mime_HeaderEncoder_QpHeaderEncoder')
60 -> withDependencies(array('mime.charstream'))
61
62 -> register('mime.charstream')
63 -> asNewInstanceOf('Swift_CharacterStream_NgCharacterStream')
64 -> withDependencies(array('mime.characterreaderfactory', 'properties.charset'))
65
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)))
70
71 -> register('mime.characterreaderfactory')
72 -> asSharedInstanceOf('Swift_CharacterReaderFactory_SimpleCharacterReaderFactory')
73
74 -> register('mime.qpcontentencoder')
75 -> asNewInstanceOf('Swift_Mime_ContentEncoder_QpContentEncoder')
76 -> withDependencies(array('mime.charstream', 'mime.bytecanonicalizer'))
77
78 -> register('mime.7bitcontentencoder')
79 -> asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder')
80 -> addConstructorValue('7bit')
81 -> addConstructorValue(true)
82
83 -> register('mime.8bitcontentencoder')
84 -> asNewInstanceOf('Swift_Mime_ContentEncoder_PlainContentEncoder')
85 -> addConstructorValue('8bit')
86 -> addConstructorValue(true)
87
88 -> register('mime.base64contentencoder')
89 -> asSharedInstanceOf('Swift_Mime_ContentEncoder_Base64ContentEncoder')
90
91 -> register('mime.rfc2231encoder')
92 -> asNewInstanceOf('Swift_Encoder_Rfc2231Encoder')
93 -> withDependencies(array('mime.charstream'))
94
95 ;
96
97 unset($swift_mime_types);