vendor/autoload_runtime.php line 35

Open in your IDE?
  1. <?php
  2. // autoload_runtime.php @generated by Symfony Runtime
  3. if (true === (require_once __DIR__.'/autoload.php') || empty($_SERVER['SCRIPT_FILENAME'])) {
  4. return;
  5. }
  6. if (PHP_VERSION_ID < 80000 && in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
  7. ob_start();
  8. $app = require $_SERVER['SCRIPT_FILENAME'];
  9. ob_end_clean();
  10. } else {
  11. $app = require $_SERVER['SCRIPT_FILENAME'];
  12. }
  13. if (!is_object($app)) {
  14. throw new TypeError(sprintf('Invalid return value: callable object expected, "%s" returned from "%s".', get_debug_type($app), $_SERVER['SCRIPT_FILENAME']));
  15. }
  16. $runtime = $_SERVER['APP_RUNTIME'] ?? $_ENV['APP_RUNTIME'] ?? 'Symfony\\Component\\Runtime\\SymfonyRuntime';
  17. $runtime = new $runtime(($_SERVER['APP_RUNTIME_OPTIONS'] ?? $_ENV['APP_RUNTIME_OPTIONS'] ?? []) + [
  18. 'project_dir' => dirname(__DIR__, 1),
  19. ]);
  20. [$app, $args] = $runtime
  21. ->getResolver($app)
  22. ->resolve();
  23. $app = $app(...$args);
  24. exit(
  25. $runtime
  26. ->getRunner($app)
  27. ->run()
  28. );