33 if (!isset(self::$_instance)) {
34 self::$_instance =
new self();
37 return self::$_instance;
50 ->register(
'properties.charset')->asValue($charset);
65 ->register(
'tempdir')->asValue($dir);
80 ->register(
'cache')->asAliasOf(sprintf(
'cache.%s', $type));
94 $dotEscape = !empty($dotEscape);
96 ->register(
'mime.qpcontentencoder')
97 ->asNewInstanceOf(
'Swift_Mime_ContentEncoder_QpContentEncoder')
98 ->withDependencies(array(
'mime.charstream',
'mime.bytecanonicalizer'))
99 ->addConstructorValue($dotEscape);