-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreflection.php
More file actions
25 lines (25 loc) · 1.01 KB
/
reflection.php
File metadata and controls
25 lines (25 loc) · 1.01 KB
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
define('ROOT_PATH', dirname(dirname(__FILE__)));
define('FRAME_PATH', '/SeaApiService/jsonWebService/');
include(ROOT_PATH . FRAME_PATH . 'CJsonWebServerReflectionView.php');
/**
* 反射基础类单例实例化
*/
$oC = new CJsonWebServerReflectionView(
ROOT_PATH . FRAME_PATH, //反射框架所在的根目录
ROOT_PATH . '/SeaApiService/workgroup/', //工作目录根
ROOT_PATH . FRAME_PATH .'template', //反射模板文件的访问位置(绝对物理路径)
'jsonWebService/template', //模板文件的Web资源访问路径(url相对根的相对路径)
ROOT_PATH . FRAME_PATH .'config/'. CJsonWebServerReflectionView::CONFIG_FILE_NAME, //反射配置文件
ROOT_PATH . FRAME_PATH .'config/' //接口client客户端的通信配置文件
);
/**
* 绑定辅助功能区
*/
require_once(ROOT_PATH . FRAME_PATH .'extends/WSImportSecurity.php');
//绑定请求入口验证安全层(不绑定则不出现checksum节点)
$oC->bindImportSecurityObject(new WSImportSecurity(ROOT_PATH . FRAME_PATH .'config/config.json_web_service.php')); //绑定请求入口验证安全层
/**
* 运行接口反射服务
*/
$oC->run();