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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<?php /** * Basic class-map auto loader generated by install.php. * Do not modify. */ class PPAutoloader { private static $vendorDir = ''; private static $map = array();
public static function loadClass($class) { if ('\\' == $class[0]) { $class = substr($class, 1); } if (false !== $pos = strrpos($class, '\\')) { // namespaced class name $classPath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)) . DIRECTORY_SEPARATOR; $className = substr($class, $pos + 1); } else { // PEAR-like class name $classPath = null; $className = $class; } $classPath .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; foreach (self::$map as $prefix => $dirs) { if (0 === strpos($class, $prefix)) { foreach ($dirs as $dir) { if (file_exists($dir . DIRECTORY_SEPARATOR . $classPath)) { include $dir . DIRECTORY_SEPARATOR . $classPath; return; } } } } }
public static function register() { self::$vendorDir = dirname(__FILE__); self::$map = array ( 'PayPal' => array ( 0 => self::$vendorDir .'/lib//paypal-sdk-core-php-811c13c/lib/', ), 'PayPal\\CoreComponentTypes' => array ( 0 => self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/', ), 'PayPal\\EBLBaseComponents' => array ( 0 => self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/', ), 'PayPal\\EnhancedDataTypes' => array ( 0 => self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/', ), 'PayPal\\PayPalAPI' => array ( 0 => self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/', ), 'PayPal\\Service' => array ( 0 => self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/', 1 => self::$vendorDir .'/lib//paypal-permissions-sdk-php-eef386c/lib/', ), 'PayPal\\Types' => array ( 0 => self::$vendorDir .'/lib//paypal-permissions-sdk-php-eef386c/lib/', ), ); spl_autoload_register(array(__CLASS__, 'loadClass'), true); } }
|