forked from ashtru/sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoload.php
More file actions
25 lines (21 loc) · 735 Bytes
/
autoload.php
File metadata and controls
25 lines (21 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* @deprecated since version 1.9.8
* @deprecated Always use composer generated autoload.php, by requiring vendor/autoload.php instead of autoload.php
* @deprecated require "autoload.php"; --> require "vendor/autoload.php";
*/
trigger_error('Custom autoloader is deprecated, use composer generated "vendor/autoload.php" instead of "autoload.php" .', E_USER_DEPRECATED);
/**
* 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];
}
});