Skip to content

Instantly share code, notes, and snippets.

@etuchscherer
Created February 28, 2014 04:08
Show Gist options
  • Save etuchscherer/9265079 to your computer and use it in GitHub Desktop.
Save etuchscherer/9265079 to your computer and use it in GitHub Desktop.
requiring autoloader.php
<?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