3 Star 4 Fork 0

纸喵软件 / frame-php

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Run.php 695 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
/**
* 纸喵php框架总入口
* Created by PhpStorm.
* User: 倒霉狐狸
* Date: 2018-08-06
* Time: 17:46
*/
namespace zhimiao;
// 定义纸喵php框架根目录
define('ZHIMIAO_ROOT', __DIR__);
defined('ROOT_PATH') or define('ROOT_PATH', ZHIMIAO_ROOT. '/../../..');
class Run {
public function __construct()
{
Config::init();
Route::init();
$Reflection = new Reflection();
$param = array_merge(Request::get(), Request::post());
$data = $Reflection->invokeMethod(array_values(Route::getMeta()), $param);
if(!is_null($data)) {
call_user_func_array(["\zhimiao\Response", "json"], (array) $data);
}
}
}
PHP
1
https://gitee.com/zhimiao/frame-php.git
git@gitee.com:zhimiao/frame-php.git
zhimiao
frame-php
frame-php
master

搜索帮助