Initial Commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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];
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user