@@ -15,7 +15,7 @@ use Jose\Component\KeyManagement\KeyAnalyzer\KeyAnalyzerManager;
15
15
use Http \Adapter \Guzzle6 \Client ;
16
16
use GuzzleHttp \Psr7 \Request ;
17
17
use GuzzleHttp \Psr7 \Response ;
18
- use Http \Message \MessageFactory as Psr7MessageFactory ;
18
+ use Http \Message \RequestFactory as Psr7RequestFactory ;
19
19
20
20
if (version_compare (PHP_VERSION , '7.1.0 ' , '< ' )) {
21
21
file_put_contents ('php://stderr ' , sprintf (
@@ -29,9 +29,9 @@ if (version_compare(PHP_VERSION, '7.1.0', '<')) {
29
29
}
30
30
31
31
/**
32
- * Class MessageFactory .
32
+ * Class RequestFactory .
33
33
*/
34
- final class MessageFactory implements Psr7MessageFactory
34
+ final class RequestFactory implements Psr7RequestFactory
35
35
{
36
36
/**
37
37
* {@inheritdoc}
@@ -52,7 +52,7 @@ final class MessageFactory implements Psr7MessageFactory
52
52
53
53
$ jsonConverter = new StandardConverter ();
54
54
$ httpClient = new Client ();
55
- $ messageFactory = new MessageFactory ();
55
+ $ requestFactory = new RequestFactory ();
56
56
$ jwkAnalyzerManager = new KeyAnalyzerManager ();
57
57
$ jwkAnalyzerManager
58
58
->add (new KeyAnalyzer \AlgorithmAnalyzer ())
@@ -86,8 +86,8 @@ $application->add(new Console\AddKeyIntoKeysetCommand($jsonConverter));
86
86
$ application ->add (new Console \OptimizeRsaKeyCommand ($ jsonConverter ));
87
87
$ application ->add (new Console \KeyAnalyzerCommand ($ jwkAnalyzerManager , $ jsonConverter ));
88
88
$ 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 ));
91
91
92
92
$ application ->add (new Console \PemConverterCommand ($ jsonConverter ));
93
93
0 commit comments