Skip to content

Commit

Permalink
Merge pull request #26 from DivineOmega/feature/implement-new-psr-18-…
Browse files Browse the repository at this point in the history
…guzzle-adapter

Implement new PSR 18 Guzzle adapter
  • Loading branch information
DivineOmega committed Feb 20, 2019
2 parents 4d71480 + 40e5edd commit 3f000ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"psr/http-message": "^1.0",
"psr/http-message-implementation": "^1.0",
"psr/http-factory-implementation": "^1.0",
"php-http/guzzle6-adapter": "^1.1|^2.0",
"php-http/discovery": "^1.6",
"nyholm/psr7": "^1.0",
"paragonie/certainty": "^1|^2",
"divineomega/do-file-cache-psr-6": "^2.0"
"divineomega/do-file-cache-psr-6": "^2.0",
"divineomega/psr-18-guzzle-adapter": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^6.5",
Expand Down
4 changes: 2 additions & 2 deletions src/PasswordExposedChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace DivineOmega\PasswordExposed;

use DivineOmega\DOFileCachePSR6\CacheItemPool;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
use DivineOmega\Psr18GuzzleAdapter\Client;
use Http\Discovery\Psr17FactoryDiscovery;
use ParagonIE\Certainty\Bundle;
use ParagonIE\Certainty\Fetch;
Expand Down Expand Up @@ -86,7 +86,7 @@ protected function createClient(): ClientInterface
$options['verify'] = $bundle->getFilePath();
}

return GuzzleAdapter::createWithConfig($options);
return new Client($options);
}

/**
Expand Down

0 comments on commit 3f000ed

Please sign in to comment.