PHP Classes

File: libs/swiftmailer/lib/swift_required_pear.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/swiftmailer/lib/swift_required_pear.php   Download  
File: libs/swiftmailer/lib/swift_required_pear.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 693 bytes
 

Contents

Class file image Download
<?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__) . '/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');