Skip to content
This repository has been archived by the owner on Aug 11, 2018. It is now read-only.

Commit

Permalink
Put default location back
Browse files Browse the repository at this point in the history
  • Loading branch information
veger committed Nov 16, 2016
1 parent 30c281a commit df88f8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php/getfilepath.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
$foundAutoLoader = false;

// First try default location
$autoloader = $rootpath . '/vendor/autoload.php';
if(is_readable($autoloader)) {
$foundAutoLoader = true;
if(getFilePath($rootpath . '/vendor/autoload.php', $class, $file)) {
exit(0);
}
}

// Try to find autoloader.php elsewhere in $rootpath
// Try to find autoload.php elsewhere in $rootpath
$dirIterator = new RecursiveDirectoryIterator($rootpath);
$reqIterator = new RecursiveIteratorIterator($dirIterator);
$regexIterator = new RegexIterator($reqIterator, '#/vendor/autoload.php$#i');
Expand Down

0 comments on commit df88f8c

Please sign in to comment.