swift_required_pear.php 602B

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