Skip to content

Commit 4129f79

Browse files
authored
Allow Dompdf3, add new options (#1047)
1 parent 235c9c2 commit 4129f79

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"require": {
1717
"php": "^7.2 || ^8.0",
18-
"dompdf/dompdf": "^2.0.7",
18+
"dompdf/dompdf": "^2.0.7 || ^3.0",
1919
"illuminate/support": "^6|^7|^8|^9|^10|^11"
2020
},
2121
"require-dev": {

config/dompdf.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@
9696
"https://" => ["rules" => []]
9797
],
9898

99+
/**
100+
* Operational artifact (log files, temporary files) path validation
101+
*/
102+
'artifactPathValidation' => null,
103+
99104
/**
100105
* @var string
101106
*/
@@ -266,6 +271,20 @@
266271
*/
267272
"enable_remote" => true,
268273

274+
/**
275+
* List of allowed remote hosts
276+
*
277+
* Each value of the array must be a valid hostname.
278+
*
279+
* This will be used to filter which resources can be loaded in combination with
280+
* isRemoteEnabled. If enable_remote is FALSE, then this will have no effect.
281+
*
282+
* Leave to NULL to allow any remote host.
283+
*
284+
* @var array|null
285+
*/
286+
'allowed_remote_hosts' => null,
287+
269288
/**
270289
* A ratio applied to the fonts height to be more like browsers' line height
271290
*/

0 commit comments

Comments
 (0)