Skip to content

Commit ee922f0

Browse files
committed
Application updated with the latest JWT Framework features
1 parent a1b872e commit ee922f0

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

app/jose

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use Jose\Component\KeyManagement\KeyAnalyzer\KeyAnalyzerManager;
1515
use Http\Adapter\Guzzle6\Client;
1616
use GuzzleHttp\Psr7\Request;
1717
use GuzzleHttp\Psr7\Response;
18-
use Http\Message\MessageFactory as Psr7MessageFactory;
18+
use Http\Message\RequestFactory as Psr7RequestFactory;
1919

2020
if (version_compare(PHP_VERSION, '7.1.0', '<')) {
2121
file_put_contents('php://stderr', sprintf(
@@ -29,9 +29,9 @@ if (version_compare(PHP_VERSION, '7.1.0', '<')) {
2929
}
3030

3131
/**
32-
* Class MessageFactory.
32+
* Class RequestFactory.
3333
*/
34-
final class MessageFactory implements Psr7MessageFactory
34+
final class RequestFactory implements Psr7RequestFactory
3535
{
3636
/**
3737
* {@inheritdoc}
@@ -52,7 +52,7 @@ final class MessageFactory implements Psr7MessageFactory
5252

5353
$jsonConverter = new StandardConverter();
5454
$httpClient = new Client();
55-
$messageFactory = new MessageFactory();
55+
$requestFactory = new RequestFactory();
5656
$jwkAnalyzerManager = new KeyAnalyzerManager();
5757
$jwkAnalyzerManager
5858
->add(new KeyAnalyzer\AlgorithmAnalyzer())
@@ -86,8 +86,8 @@ $application->add(new Console\AddKeyIntoKeysetCommand($jsonConverter));
8686
$application->add(new Console\OptimizeRsaKeyCommand($jsonConverter));
8787
$application->add(new Console\KeyAnalyzerCommand($jwkAnalyzerManager, $jsonConverter));
8888
$application->add(new Console\KeysetAnalyzerCommand($jwkAnalyzerManager, $jsonConverter));
89-
$application->add(new Console\X5ULoaderCommand(new X5UFactory($jsonConverter, $httpClient, $messageFactory), $jsonConverter));
90-
$application->add(new Console\JKULoaderCommand(new JKUFactory($jsonConverter, $httpClient, $messageFactory), $jsonConverter));
89+
$application->add(new Console\X5ULoaderCommand(new X5UFactory($jsonConverter, $httpClient, $requestFactory), $jsonConverter));
90+
$application->add(new Console\JKULoaderCommand(new JKUFactory($jsonConverter, $httpClient, $requestFactory), $jsonConverter));
9191

9292
$application->add(new Console\PemConverterCommand($jsonConverter));
9393

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
},
2222
"require": {
2323
"php": "^7.1",
24-
"web-token/jwt-console": "^0.3",
24+
"web-token/jwt-console": "^0.4",
2525
"padraic/phar-updater": "^1.0",
2626
"php-http/message-factory": "^1.0",
2727
"php-http/httplug": "^1.1",
2828
"php-http/guzzle6-adapter": "^1.1.1"
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "0.3.x-dev"
32+
"dev-master": "0.4.x-dev"
3333
}
3434
},
3535
"config": {

composer.lock

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)