|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of SwiftMailer. |
|
|
5 |
* (c) 2004-2009 Chris Corbyn |
|
|
6 |
* |
|
|
7 |
* For the full copyright and license information, please view the LICENSE |
|
|
8 |
* file that was distributed with this source code. |
|
|
9 |
*/ |
|
|
10 |
|
|
|
11 |
/* |
|
|
12 |
* Autoloader and dependency injection initialization for Swift Mailer. |
|
|
13 |
*/ |
|
|
14 |
|
|
|
15 |
if (defined('SWIFT_REQUIRED_LOADED')) |
|
|
16 |
return; |
|
|
17 |
|
|
|
18 |
define('SWIFT_REQUIRED_LOADED', true); |
|
|
19 |
|
|
|
20 |
//Load Swift utility class |
|
|
21 |
require dirname(__FILE__) . '/classes/Swift.php'; |
|
|
22 |
|
|
|
23 |
//Start the autoloader |
|
|
24 |
Swift::registerAutoload(); |
|
|
25 |
|
|
|
26 |
//Load the init script to set up dependency injection |
|
|
27 |
require dirname(__FILE__) . '/swift_init.php'; |