Skip to content

Commit

Permalink
Composer autoload include statements to make Composer dependencies wo…
Browse files Browse the repository at this point in the history
…rk (ref #833)
  • Loading branch information
gsherwood committed Jan 12, 2016
1 parent 0ba9c39 commit 7f0bfce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,10 @@ public static function getLoadedFiles()
// it gets a chance to hear about every autoload request, and record
// the file and class name for it.
spl_autoload_register(__NAMESPACE__.'\Autoload::load', true, true);

// Include the composer autoloader for composer installs.
if (file_exists($a = __DIR__.'/../../autoload.php') === true) {
include_once $a;
} else if (file_exists($a = __DIR__.'/vendor/autoload.php') === true) {
include_once $a;
}

0 comments on commit 7f0bfce

Please sign in to comment.