Sfoglia il codice sorgente

fix(xcat): bootstrap not found

Incisakura 5 anni fa
parent
commit
232fa4315b
1 ha cambiato i file con 12 aggiunte e 5 eliminazioni
  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);