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
|
<?php
require_once 'Psr/Log/autoload.php';
if (stream_resolve_include_path('PhpAmqpLib/autoload.php')){
include_once 'PhpAmqpLib/autoload.php';
}
if (stream_resolve_include_path('Aws/autoload.php')){
include_once 'Aws/autoload.php';
}
spl_autoload_register(
function($class) {
static $classes = null;
if ($classes === null) {
$classes = array(
___CLASSLIST___
);
}
$cn = strtolower($class);
if (isset($classes[$cn])) {
require ___BASEDIR___$classes[$cn];
}
},
true,
false
);
|