PHP Classes

File: sdk/autoload.php

Recommend this page to a friend!
  Classes of Samuel Adeshina   PHP Authorize.net SIM   sdk/autoload.php   Download  
File: sdk/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: First Commit
Class: PHP Authorize.net SIM
Generate payment forms for Authorize.net SIM API
Author: By
Last change:
Date: 9 years ago
Size: 423 bytes
 

Contents

Class file image Download
<?php
/**
 * Custom SPL autoloader for the AuthorizeNet SDK
 *
 * @package AuthorizeNet
 */

spl_autoload_register(function($className) {
    static
$classMap;

    if (!isset(
$classMap)) {
       
$classMap = require __DIR__ . DIRECTORY_SEPARATOR . 'classmap.php';
    }

    if (isset(
$classMap[$className])) {
        include
$classMap[$className];
    } else {
        echo
'Class not loaded: ' . $className;
    }
});