Browse Source

fix(xcat): bootstrap not found

Incisakura 5 năm trước cách đây
mục cha
commit
232fa4315b
1 tập tin đã thay đổi với 12 bổ sung5 xóa
  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);