-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.php
More file actions
27 lines (24 loc) · 790 Bytes
/
Copy pathapi.php
File metadata and controls
27 lines (24 loc) · 790 Bytes
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
//加载composer库
error_reporting(0);
date_default_timezone_set('Asia/Shanghai');
ini_set('date.timezone','Asia/Shanghai');
error_reporting(E_ALL);
//加载rest composer库
if (is_readable(__DIR__ . '/vendor/autoload.php')) {
//if composer auto loader is found use it
$loader = require_once __DIR__ . '/vendor/autoload.php';
$loader->setUseIncludePath(true);
class_alias('Luracast\\Restler\\Restler', 'Restler');
}
include_once(__DIR__.'/auto_init.php');
include __DIR__ . '/Library/Loader/AutoloaderFactory.php';
Library\Loader\AutoloaderFactory::factory(array(
'Library\Loader\StandardAutoloader' => array(
'autoregister_zf' => true,
"namespaces"=>array(
"Application"=>__DIR__.'/Application',
)
)
));
Application::init(require 'Config/api.php')->run();