%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/quickbooks/v3-php-sdk/src/ |
Upload File : |
<?php
/**
* This is a file that required for using the files located in _Sample folders.
* It is a SQL autoloader that performs the exact same function as composer "require "vendor/autoload.php";"
* If you are using the _sample file. Remove the required include('../config.php'); line and add "require "vendor/autoload.php"" instead.
*
* @author Hao
*/
// PSR-4 Autoloader,QuickBooksOnline\Data;
spl_autoload_register(function ($class) {
$prefix = 'QuickBooksOnline\\API\\';
$base_dir = __DIR__ . DIRECTORY_SEPARATOR;
$len = strlen($prefix);
if (strncmp($prefix, $class, $len) !== 0) {
return;
}
$relative_class = substr($class, $len);
$filewithoutExtension = $base_dir . str_replace('\\', '/', $relative_class);
$file = $filewithoutExtension. '.php';
//Below str_replace is for local testing. Remove it before putting on Composer.
if (file_exists($file) ) {
require ($file);
}
});