console 481 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env php
  2. <?php
  3. declare(strict_types=1);
  4. use App\Services\Boot;
  5. use Symfony\Component\Console\Application;
  6. require __DIR__ . '/app/predefine.php';
  7. require __DIR__ . '/vendor/autoload.php';
  8. require __DIR__ . '/config/.config.php';
  9. require __DIR__ . '/app/envload.php';
  10. Boot::setTime();
  11. Boot::bootSentry();
  12. Boot::bootDb();
  13. $application = new Application();
  14. // ... register commands
  15. try {
  16. $application->run();
  17. } catch (Exception $e) {
  18. echo $e->getMessage();
  19. }