Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Fix autoloading
Browse files Browse the repository at this point in the history
The real path to phpsa is vendor/ovr/phpsa/bin that why it requires going up to 3 levels ../../../ to reach vendor folder
  • Loading branch information
necromant2005 committed Jun 29, 2015
1 parent 6e798d0 commit 3e4f100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/phpsa
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (!ini_get('date.timezone')) {
/**
* @author Patsura Dmitry http://github.com/ovr <[email protected]>
*/
foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
foreach (array(__DIR__ . '/../../../autoload.php', __DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
if (file_exists($file)) {
include_once $file;
define('COMPOSER_INSTALL', $file);
Expand Down

0 comments on commit 3e4f100

Please sign in to comment.