File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed
app/code/Magento/JwtFrameworkAdapter Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 9
9
namespace Magento \JwtFrameworkAdapter \Model ;
10
10
11
11
use Jose \Component \Encryption \Compression \CompressionMethodManager ;
12
+ use Jose \Component \Encryption \Compression \Deflate ;
12
13
13
14
class JweCompressionManagerFactory
14
15
{
15
- /**
16
- * @var \Jose\Component\Encryption\Compression\CompressionMethod[]
17
- */
18
- private $ methods ;
19
-
20
- /**
21
- * @param \Jose\Component\Encryption\Compression\CompressionMethod[] $methods
22
- */
23
- public function __construct (array $ methods )
24
- {
25
- $ this ->methods = $ methods ;
26
- }
27
-
28
16
public function create (): CompressionMethodManager
29
17
{
30
- return new CompressionMethodManager ($ this -> methods );
18
+ return new CompressionMethodManager ([ new Deflate ()] );
31
19
}
32
20
}
Original file line number Diff line number Diff line change 7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
9
9
<preference for =" Magento\Framework\Jwt\JwtManagerInterface" type =" Magento\JwtFrameworkAdapter\Model\JwtManager" />
10
- <type name =" Magento\JwtFrameworkAdapter\Model\JweCompressionManagerFactory" >
11
- <arguments >
12
- <argument name =" methods" xsi : type =" array" >
13
- <item name =" deflate" xsi : type =" object" >Jose\Component\Encryption\Compression\Deflate</item >
14
- </argument >
15
- </arguments >
16
- </type >
17
10
</config >
You can’t perform that action at this time.
0 commit comments