Commit fe90594f authored by wolfcode's avatar wolfcode

update

parent 9ab5c3b3
APP_DEBUG = false
APP_DEBUG = true
DB_HOST = 127.0.0.1
DB_PORT = 3306
......
<?php
namespace app\middleware;
use Webman\MiddlewareInterface;
use Webman\Http\Response;
use Webman\Http\Request;
/**
* Class InstallCheck 博客程序首次安装检测
* @package app\middleware
*/
class InstallCheck implements MiddlewareInterface
{
public function process(Request $request, callable $next): Response
{
$lock_file = base_path() . DIRECTORY_SEPARATOR . 'extend' . DIRECTORY_SEPARATOR . 'install.lock';
if (!file_exists($lock_file)) {
}
return $next($request);
}
}
\ No newline at end of file
......@@ -12,4 +12,6 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
return [];
\ No newline at end of file
return [
'' => [app\middleware\InstallCheck::class],
];
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment