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 99namespace Magento \JwtFrameworkAdapter \Model ;
1010
1111use Jose \Component \Encryption \Compression \CompressionMethodManager ;
12+ use Jose \Component \Encryption \Compression \Deflate ;
1213
1314class JweCompressionManagerFactory
1415{
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-
2816 public function create (): CompressionMethodManager
2917 {
30- return new CompressionMethodManager ($ this -> methods );
18+ return new CompressionMethodManager ([ new Deflate ()] );
3119 }
3220}
Original file line number Diff line number Diff line change 77-->
88<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
99 <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 >
1710</config >
You can’t perform that action at this time.
0 commit comments