forked from amphp/http-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Artax.php
25 lines (23 loc) · 897 Bytes
/
Artax.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
<?php
/**
* Artax Library Bootstrap File
*
* Use this bootstrap file if you wish to include specific Artax packages in your
* project without using the framework writ-large. Framework users SHOULD NOT
* include this file and SHOULD INSTEAD use the `Artax-Framework.php` bootstrap
* file (which references this file) located in the base project directory.
*
* @category Artax
* @author Daniel Lowrey <rdlowrey@gmail.com>
* @license All code subject to the terms of the LICENSE file in the project root
* @version ${project.version}
*/
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) {
die('Artax requires PHP 5.3 or higher' . PHP_EOL);
}
spl_autoload_register(function($className) {
if (0 === strpos($className, 'Artax\\')) {
$className = str_replace('\\', '/', $className);
require __DIR__ . "/src/$className.php";
}
});