Skip to content

Commit

Permalink
fix include path
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRatG committed Oct 26, 2017
1 parent 8981262 commit 3a4bfa8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/symdep
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ if (!$loaded) {
}

foreach ($includes as $include) {
$dir = realpath($include);
if (file_exists($dir) && false !== strpos($dir, 'deployer/deployer')) {
set_include_path($dir . PATH_SEPARATOR . get_include_path());
if (strlen(Phar::running()) > 0) {
set_include_path(dirname(__DIR__) . '/vendor/deployer/deployer' . PATH_SEPARATOR . get_include_path());
} elseif (file_exists($include) && false !== strpos($include, 'deployer/deployer')) {
set_include_path($include . PATH_SEPARATOR . get_include_path());
}
}

set_include_path(dirname(__DIR__) . PATH_SEPARATOR . get_include_path());

// Include function declarations
Expand Down

0 comments on commit 3a4bfa8

Please sign in to comment.