Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Laravel Index & Register Shutdown Function
<?php
function shutdown(){
$includedFiles = print_r(get_included_files(), true);
\Log::info($includedFiles);
}
register_shutdown_function('shutdown');
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels great to relax.
|
*/
require __DIR__.'/../vendor/autoload.php';
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment