Created
February 28, 2014 04:08
-
-
Save etuchscherer/9265079 to your computer and use it in GitHub Desktop.
requiring autoloader.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Loading this way throws an error when pointing to the wrong dir. | |
* It also makes it super simple to debug, via the $loader var. | |
*/ | |
if (($loader = require_once __DIR__ . '/../vendor/autoload.php') == null) { | |
die('Vendor directory not found, Please run composer install.'); | |
} | |
// Uncomment this if your having autoloader problems | |
// var_dump($loader); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment