From 232aa1924c8c0f10d87b210b46c9f061af5c844c Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 17 Oct 2010 13:29:57 +0000 Subject: added files --- .../swiftmailer/lib/classes/Swift/Preferences.php | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 h-source/External/swiftmailer/lib/classes/Swift/Preferences.php (limited to 'h-source/External/swiftmailer/lib/classes/Swift/Preferences.php') diff --git a/h-source/External/swiftmailer/lib/classes/Swift/Preferences.php b/h-source/External/swiftmailer/lib/classes/Swift/Preferences.php new file mode 100644 index 0000000..20a2e5f --- /dev/null +++ b/h-source/External/swiftmailer/lib/classes/Swift/Preferences.php @@ -0,0 +1,76 @@ +register('properties.charset')->asValue($charset); + return $this; + } + + /** + * Set the directory where temporary files can be saved. + * @param string $dir + * @return Swift_Preferences + */ + public function setTempDir($dir) + { + Swift_DependencyContainer::getInstance() + ->register('tempdir')->asValue($dir); + return $this; + } + + /** + * Set the type of cache to use (i.e. "disk" or "array"). + * @param string $type + * @return Swift_Preferences + */ + public function setCacheType($type) + { + Swift_DependencyContainer::getInstance() + ->register('cache')->asAliasOf(sprintf('cache.%s', $type)); + return $this; + } + +} -- cgit v1.2.3