File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 7
7
use KNPLabs \Snappy \Core \Backend \Adapter ;
8
8
use KNPLabs \Snappy \Core \Backend \Factory ;
9
9
use KNPLabs \Snappy \Core \Backend \Options ;
10
- use SplFileInfo ;
10
+ use Psr \Http \Message \StreamFactoryInterface ;
11
+ use Psr \Http \Message \UriFactoryInterface ;
11
12
12
13
/**
13
14
* @implements Factory<WkHtmlToPdfAdapter>
@@ -18,9 +19,12 @@ final class WkHtmlToPdfFactory implements Factory
18
19
* @param non-empty-string $binary
19
20
* @param positive-int $timeout
20
21
*/
21
- public function __construct (private readonly string $ binary , private readonly int $ timeout )
22
- {
23
-
22
+ public function __construct (
23
+ private readonly string $ binary ,
24
+ private readonly int $ timeout ,
25
+ private readonly StreamFactoryInterface $ streamFactory ,
26
+ private readonly UriFactoryInterface $ uriFactory ,
27
+ ) {
24
28
}
25
29
26
30
public function create (Options $ options ): Adapter
@@ -30,6 +34,8 @@ public function create(Options $options): Adapter
30
34
$ this ->timeout ,
31
35
$ this ,
32
36
$ options ,
37
+ $ this ->streamFactory ,
38
+ $ this ->uriFactory ,
33
39
);
34
40
}
35
41
}
You can’t perform that action at this time.
0 commit comments