Put the dompdf fonts and temp files in a folder inside var/dompdf, which should always be writable by the server process

This commit is contained in:
Jan Böhmer 2023-07-02 13:57:15 +02:00
parent 2b67c1c631
commit ae8edffdc8
3 changed files with 63 additions and 2 deletions

View file

@ -221,6 +221,11 @@ services:
tags:
- { name: 'app.label_placeholder_provider', priority: 10}
App\Services\LabelSystem\DompdfFactory:
arguments:
$fontDirectory: '%kernel.project_dir%/var/dompdf/fonts/'
$tmpDirectory: '%kernel.project_dir%/var/dompdf/tmp/'
####################################################################################################################
# Trees
####################################################################################################################