[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/ -> swift_required.php (source)

   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 (class_exists('Swift', false)) {
  16      return;
  17  }
  18  
  19  // Load Swift utility class
  20  require dirname(__FILE__).'/classes/Swift.php';
  21  
  22  if (!function_exists('_swiftmailer_init')) {
  23      function _swiftmailer_init()
  24      {
  25          require dirname(__FILE__).'/swift_init.php';
  26      }
  27  }
  28  
  29  // Start the autoloader and lazy-load the init script to set up dependency injection
  30  Swift::registerAutoload('_swiftmailer_init');


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1