소스 검색

fix(xcat): bootstrap not found

Incisakura 5 년 전
부모
커밋
232fa4315b
1개의 변경된 파일12개의 추가작업 그리고 5개의 파일을 삭제
  1. 12 5
      xcat

+ 12 - 5
xcat

@@ -1,10 +1,17 @@
 #!/usr/bin/env php
 <?php
-define('PUBLIC_PATH', __DIR__."/public");
-require __DIR__.'/bootstrap.php';
-/***
- * ss-panel xcat script
- */
+declare(strict_types=1);
+
+use App\Services\Boot;
+
+require __DIR__ . '/app/predefine.php';
+require __DIR__ . '/vendor/autoload.php';
+require __DIR__ . '/config/.config.php';
+
+Boot::setDebug();
+Boot::setTimezone();
+Boot::bootDb();
+
 use App\Command\XCat;
 
 $cat = new XCat($argv);