4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 //@require 'Swift/DependencyContainer.php';
14 * Provides quick access to each encoding type.
18 * @author Chris Corbyn
24 * Get the Encoder that provides 7-bit encoding.
26 * @return Swift_Mime_ContentEncoder
28 public static function get7BitEncoding()
30 return self
::_lookup('mime.7bitcontentencoder');
34 * Get the Encoder that provides 8-bit encoding.
36 * @return Swift_Mime_ContentEncoder
38 public static function get8BitEncoding()
40 return self
::_lookup('mime.8bitcontentencoder');
44 * Get the Encoder that provides Quoted-Printable (QP) encoding.
46 * @return Swift_Mime_ContentEncoder
48 public static function getQpEncoding()
50 return self
::_lookup('mime.qpcontentencoder');
54 * Get the Encoder that provides Base64 encoding.
56 * @return Swift_Mime_ContentEncoder
58 public static function getBase64Encoding()
60 return self
::_lookup('mime.base64contentencoder');
63 // -- Private Static Methods
65 private static function _lookup($key)
67 return Swift_DependencyContainer
::getInstance()->lookup($key);