forked from vanilla/jsConnectPHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-config.php
27 lines (23 loc) · 972 Bytes
/
build-config.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
<?php
/**
* @author Todd Burry <[email protected]>
* @copyright 2009-2020 Vanilla Forums Inc.
* @license MIT
*/
require __DIR__.'/vendor/autoload.php';
use ClassPreloader\ClassLoader;
use Vanilla\JsConnect\JsConnect;
use Vanilla\JsConnect\JsConnectJSONP;
$config = ClassLoader::getIncludes(function (ClassLoader $loader) {
$loader->register();
$loader->loadClass(JsConnectJSONP::class);
$loader->loadClass(JsConnect::class);
$loader->loadClass(\Vanilla\JsConnect\Exceptions\JsConnectException::class);
$loader->loadClass(\Vanilla\JsConnect\Exceptions\FieldNotFoundException::class);
$loader->loadClass(\Vanilla\JsConnect\Exceptions\InvalidValueException::class);
$loader->loadClass(\Firebase\JWT\BeforeValidException::class);
$loader->loadClass(\Firebase\JWT\ExpiredException::class);
$loader->loadClass(\Firebase\JWT\JWT::class);
$loader->loadClass(\Firebase\JWT\SignatureInvalidException::class);
});
return $config;