summaryrefslogtreecommitdiff
path: root/vendor/swiftmailer/swift_required.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-08-15 17:23:41 -0700
committerFrédéric Guillot <fred@kanboard.net>2014-08-15 17:23:41 -0700
commit9eeded33f68872515954a2fc177fcb47a9273ae9 (patch)
treef3ef9507e087ca6bf3ce624232da240a8689b051 /vendor/swiftmailer/swift_required.php
parentc539bdc8ab746c5afd48cf87de057dc38d50adac (diff)
Add email notifications
Diffstat (limited to 'vendor/swiftmailer/swift_required.php')
-rw-r--r--vendor/swiftmailer/swift_required.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/swiftmailer/swift_required.php b/vendor/swiftmailer/swift_required.php
new file mode 100644
index 00000000..d64d26ed
--- /dev/null
+++ b/vendor/swiftmailer/swift_required.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__) . '/classes/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');