public static function register() { self::$vendorDir = dirname(__FILE__); self::$map = array(); spl_autoload_register(array(__CLASS__, 'loadClass'), true); }
<?php /** * Include this file in your application. This file sets up the required classloader based on * whether you used composer or the custom installer. */ // require_once 'Configuration.php'; /* * @constant PP_CONFIG_PATH required if credentoal and configuration is to be used from a file * Let the SDK know where the sdk_config.ini file resides. */ //define('PP_CONFIG_PATH', dirname(__FILE__)); /* * use autoloader */ if (file_exists(dirname(__FILE__) . '/vendor/autoload.php')) { require 'vendor/autoload.php'; } else { require 'PPAutoloader.php'; PPAutoloader::register(); }
public static function register() { self::$vendorDir = dirname(__FILE__); self::$map = array('PayPal' => array(0 => self::$vendorDir . '/vendor/paypal//paypal-sdk-core-php-811c13c/lib/'), 'PayPal\\CoreComponentTypes' => array(0 => self::$vendorDir . '/vendor/paypal//paypal-merchant-sdk-php-251a6bd/lib/'), 'PayPal\\EBLBaseComponents' => array(0 => self::$vendorDir . '/vendor/paypal//paypal-merchant-sdk-php-251a6bd/lib/'), 'PayPal\\EnhancedDataTypes' => array(0 => self::$vendorDir . '/vendor/paypal//paypal-merchant-sdk-php-251a6bd/lib/'), 'PayPal\\PayPalAPI' => array(0 => self::$vendorDir . '/vendor/paypal//paypal-merchant-sdk-php-251a6bd/lib/'), 'PayPal\\Service' => array(0 => self::$vendorDir . '/vendor/paypal//paypal-merchant-sdk-php-251a6bd/lib/', 1 => self::$vendorDir . '/vendor/paypal//paypal-permissions-sdk-php-eef386c/lib/'), 'PayPal\\Types' => array(0 => self::$vendorDir . '/vendor/paypal//paypal-permissions-sdk-php-eef386c/lib/')); spl_autoload_register(array(__CLASS__, 'loadClass'), true); }