Advertisement
Guest User

LibreNMS error after Bullseye Upgrade

a guest
Mar 8th, 2022
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Contracts\Http\Kernel;
  4. use Illuminate\Http\Request;
  5.  
  6. define('LARAVEL_START', microtime(true));
  7.  
  8. /*
  9. |--------------------------------------------------------------------------
  10. | Check If Application Is Under Maintenance
  11. |--------------------------------------------------------------------------
  12. |
  13. | If the application is maintenance / demo mode via the "down" command we
  14. | will require this file so that any prerendered template can be shown
  15. | instead of starting the framework, which could cause an exception.
  16. |
  17. */
  18.  
  19. if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) {
  20. require __DIR__ . '/../storage/framework/maintenance.php';
  21. }
  22.  
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Register The Auto Loader
  26. |--------------------------------------------------------------------------
  27. |
  28. | Composer provides a convenient, automatically generated class loader for
  29. | this application. We just need to utilize it! We'll simply require it
  30. | into the script here so we don't need to manually load our classes.
  31. |
  32. */
  33.  
  34. require __DIR__ . '/../vendor/autoload.php';
  35.  
  36. /*
  37. |--------------------------------------------------------------------------
  38. | Run The Application
  39. |--------------------------------------------------------------------------
  40. |
  41. | Once we have the application, we can handle the incoming request using
  42. | the application's HTTP kernel. Then, we will send the response back
  43. | to this client's browser, allowing them to enjoy our application.
  44. |
  45. */
  46.  
  47. $app = require_once __DIR__ . '/../bootstrap/app.php';
  48.  
  49. $kernel = $app->make(Kernel::class);
  50.  
  51. $response = tap($kernel->handle(
  52. $request = Request::capture()
  53. ))->send();
  54.  
  55. $kernel->terminate($request, $response);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement