-
Notifications
You must be signed in to change notification settings - Fork 4
/
init.php
31 lines (29 loc) · 1.01 KB
/
init.php
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
<?php
/**
* Bolt PHP library
*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License (MIT)
* that is bundled with this package in the file LICENSE.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/MIT
*
* @category Bolt
* @copyright Copyright (c) 2018 Bolt Financial, Inc (https://www.bolt.com)
* @license https://opensource.org/licenses/MIT MIT License (MIT)
*/
// Composer autoloader path
$vendorAutoload = dirname(dirname(__DIR__)) . '/autoload.php';
if (file_exists($vendorAutoload)) {
// Load classes via composer autoloader
require($vendorAutoload);
} else {
// Preload library classes
require(dirname(__FILE__) . '/lib/ApiClient.php');
require(dirname(__FILE__) . '/lib/Http/CurlClient.php');
require(dirname(__FILE__) . '/lib/Http/Response.php');
require(dirname(__FILE__) . '/lib/SignatureVerifier.php');
require(dirname(__FILE__) . '/lib/Bolt.php');
require(dirname(__FILE__) . '/lib/Helper.php');
}