librenms/bootstrap/autoload.php
Tony Murray c6e719b9be
Check PHP version first (#10473)
Check PHP version before anything so we can inform the user instead of them getting generic error 500.
2019-08-01 06:58:22 -05:00

23 lines
667 B
PHP

<?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so we do not have to manually load any of
| our application's PHP classes. It just feels great to relax.
|
*/
@require_once __DIR__ . '/../app/Checks.php';
\App\Checks::preAutoload();
@include __DIR__ . '/../vendor/autoload.php';
\App\Checks::postAutoload();