artisan 765 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env php
  2. <?php
  3. declare(strict_types=1);
  4. ini_set('display_errors', 'on');
  5. ini_set('display_startup_errors', 'on');
  6. ini_set('memory_limit', '1G');
  7. error_reporting(E_ALL);
  8. ! defined('BASE_PATH') && define('BASE_PATH', __DIR__);
  9. require BASE_PATH . '/vendor/autoload.php';
  10. ! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);
  11. // Self-called anonymous function that creates its own scope and keep the global namespace clean.
  12. (function () {
  13. Hypervel\Foundation\ClassLoader::init();
  14. /** @var Hypervel\Foundation\Contracts\Application $container */
  15. $container = require BASE_PATH . '/bootstrap/app.php';
  16. $application = $container->get(Hyperf\Contract\ApplicationInterface::class);
  17. $application->run();
  18. })();