Skip to content

Commit

Permalink
Updated composer.
Browse files Browse the repository at this point in the history
Added an error to index when vendor/autoload.php could not be found.
  • Loading branch information
Kyle Spraggs committed May 20, 2012
1 parent 96d18b1 commit a176a38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

chdir(dirname(__DIR__));

if (!file_exists('vendor/autoload.php')) {
throw new RuntimeException('vendor/autoload.php could not be found. Did you run php composer.phar install?');
exit;
}

// Composer autoloading
require_once('vendor/autoload.php');

Expand Down

0 comments on commit a176a38

Please sign in to comment.