Example #1
0
 /**
  * Configure autoloading using Swift Mailer.
  *
  * This is designed to play nicely with other autoloaders.
  *
  * @param string $initPath The init script to load when autoloading the first Swift class
  */
 public static function registerAutoload($initPath = null)
 {
     self::$initPath = $initPath;
     spl_autoload_register(array('Swift', 'autoload'));
 }
Example #2
0
 /**
  * Configure autoloading using Swift Mailer.
  *
  * This is designed to play nicely with other autoloaders.
  *
  * @param string $initPath The init script to load when autoloading the first Swift class
  */
 public static function registerAutoload($initPath = null)
 {
     self::$initPath = $initPath;
     spl_autoload_register(array('Swift', 'autoload'), false, true);
     //Zurmo edited to properly auto-load classes.
 }