Skip to content

Commit

Permalink
Merge pull request #16 from xrobau/fix-guzzle-include
Browse files Browse the repository at this point in the history
Fixes #15 - Use the Vendor directory
  • Loading branch information
Elendev authored Nov 18, 2019
2 parents 3881a3f + 479a2b6 commit 9dc7d47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,17 +318,17 @@ private function getClient()
}

// Require the guzzle functions manually.
$guzzlefunctions = $composer->getConfig()->get('home') . '/vendor/guzzlehttp/guzzle/src/functions_include.php';
$guzzlefunctions = $composer->getConfig()->get('vendor-dir') . '/guzzlehttp/guzzle/src/functions_include.php';
if (!file_exists($guzzlefunctions)) {
throw new FileNotFoundException("guzzlehttp/guzzle/src/functions.php not found, is guzzle installed?");
throw new FileNotFoundException("$guzzlefunctions not found, is guzzle installed?");
}
$guzzlepsr7functions = $composer->getConfig()->get('home') . '/vendor/guzzlehttp/psr7/src/functions_include.php';
$guzzlepsr7functions = $composer->getConfig()->get('vendor-dir') . '/guzzlehttp/psr7/src/functions_include.php';
if (!file_exists($guzzlepsr7functions)) {
throw new FileNotFoundException("guzzlehttp/psr7/src/functions.php not found, is guzzle installed?");
throw new FileNotFoundException("$guzzlepsr7functions not found, is guzzle installed?");
}
$guzzlepromisesfunctions = $composer->getConfig()->get('home') . '/vendor/guzzlehttp/promises/src/functions_include.php';
$guzzlepromisesfunctions = $composer->getConfig()->get('vendor-dir') . '/guzzlehttp/promises/src/functions_include.php';
if (!file_exists($guzzlepromisesfunctions)) {
throw new FileNotFoundException("guzzlehttp/promises/src/functions.php not found, is guzzle installed?");
throw new FileNotFoundException("$guzzlepromisesfunctions not found, is guzzle installed?");
}
require $guzzlefunctions;
require $guzzlepsr7functions;
Expand Down

0 comments on commit 9dc7d47

Please sign in to comment.