mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Check PHP version before anything so we can inform the user instead of them getting generic error 500.
		
			
				
	
	
		
			23 lines
		
	
	
		
			667 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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();
 |