Skip to content

Commit 486684b

Browse files
authored
minor #135 Extract wkhtmltopdf file path to env variable (Zales0123)
This PR was merged into the 1.0-dev branch. Discussion ---------- It was frustrating πŸš€ Commits ------- 6ba1ae0 Extract wkhtmltopdf file path to env variable
2 parents 915cb7b + 6ba1ae0 commit 486684b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

β€Žtests/Application/.envβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ DATABASE_URL=mysql://root@127.0.0.1/sylius_refund_plugin_%kernel.environment%?se
2121
# Delivery is disabled by default via "null://localhost"
2222
MAILER_URL=smtp://localhost
2323
###< symfony/swiftmailer-bundle ###
24+
25+
###> knplabs/knp-snappy-bundle ###
26+
WKHTMLTOPDF_PATH=%kernel.project_dir%/etc/wkhtmltopdf
27+
###< knplabs/knp-snappy-bundle ###
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
knp_snappy:
22
pdf:
33
enabled: true
4-
binary: /usr/local/bin/wkhtmltopdf
4+
binary: '%env(resolve:WKHTMLTOPDF_PATH)%'
55
options: []

β€Žtests/Application/config/packages/test/knp_snappy.yamlβ€Ž

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
Β (0)