Skip to content

Commit

Permalink
修改版本
Browse files Browse the repository at this point in the history
  • Loading branch information
yymou committed Sep 21, 2020
1 parent 549824f commit 625a93b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class App
public function __construct()
{
defined('SLINK_ROOT') or define('SLINK_ROOT', realpath(getcwd()));
//加载配置文件
$this->loadEnv();
}

//设置redis通用配置
Expand Down Expand Up @@ -74,15 +72,5 @@ public function getOlink(string $short_link) : string
return $this->shortLink;
}
}

private function loadEnv()
{
$file = SLINK_ROOT . '/env.php';
if(file_exists($file)){
Config::getInstance()->loadEnv($file);
}else{
die('env file missing');
}
}
}
?>

0 comments on commit 625a93b

Please sign in to comment.