Skip to content

Instantly share code, notes, and snippets.

@alnutile
Created June 16, 2017 20:18
Show Gist options
  • Save alnutile/670dd1ead5b6f88f5aaa542284dea3d9 to your computer and use it in GitHub Desktop.
Save alnutile/670dd1ead5b6f88f5aaa542284dea3d9 to your computer and use it in GitHub Desktop.
<?php
define('COMMAND_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 that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
if (is_file($autoload = __DIR__.'/../vendor/autoload.php')) {
require $autoload;
} else {
require __DIR__ . '/../../../../vendor/autoload.php';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment