Update cli.php

This commit is contained in:
Namhyeon Go 2020-04-20 20:53:07 +09:00 committed by GitHub
parent 4f9ddb5634
commit 02f4051ef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,12 @@ if(!empty($opts['route'])) {
set_shared_var("route", $route);
set_shared_var("host", $opts['host']);
// get PID(Process ID)
set_shared_var("mypid", getmypid());
// set database connection
set_shared_var("dbc", get_db_connect());
// load route file
if(!loadRoute($route, $shared_vars)) {
loadRoute("errors/404", $shared_vars);