1 Star 0 Fork 6

龙人 / fastwork

forked from yumufeng / fastwork 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
start.php 497 Bytes
Copy Edit Web IDE Raw Blame History
yumufeng authored 2019-02-04 23:14 . 删除orm
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/2/1
* Time: 19:20
*/
use fastwork\Container;
require __DIR__ . '/vendor/autoload.php';
define('APP_DEBUG', true);
// 检测swoole版本
if (version_compare(swoole_version(), '4.2.13', '<')) {
exit("\e[41m swoole version is less than 4.2.13 \e[0m" . PHP_EOL);
}
// 应用初始化
$app_path = __DIR__ . '/app/';
$app = Container::get('fastwork')->setAppPath($app_path);
\Swoole\Runtime::enableCoroutine();
$app->run();

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/long_ren/fastwork.git
git@gitee.com:long_ren/fastwork.git
long_ren
fastwork
fastwork
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385