diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-06 06:41:47 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-06 06:41:47 -0500 |
commit | c80c15dcc33a70acc2b177691d33f088f8c2541e (patch) | |
tree | bc3e44e35b97b751c145cc5797a0faf356922244 /vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php | |
parent | c91ff61cdfa8b5eb76783927e5b8710f2a9f2601 (diff) |
Include all vendor files in the repo to be easier for people
Diffstat (limited to 'vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php')
-rw-r--r-- | vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php b/vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php new file mode 100644 index 00000000..d826d0f9 --- /dev/null +++ b/vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php @@ -0,0 +1,30 @@ +<?php + +/* + * This file is part of SwiftMailer. + * (c) 2004-2009 Chris Corbyn + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/* + * Autoloader and dependency injection initialization for Swift Mailer. + */ + +if (class_exists('Swift', false)) { + return; +} + +// Load Swift utility class +require dirname(__FILE__).'/Swift.php'; + +if (!function_exists('_swiftmailer_init')) { + function _swiftmailer_init() + { + require dirname(__FILE__).'/swift_init.php'; + } +} + +// Start the autoloader and lazy-load the init script to set up dependency injection +Swift::registerAutoload('_swiftmailer_init'); |