Skip to content

Commit f8a29fd

Browse files
committed
Fixed undefined constants. These were not added to available config because they are used for DOMPDF web interface, which is not supported by DOMPDFModule.
1 parent 5f956b2 commit f8a29fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/DOMPDFModule/Service/DOMPDFFactory.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ public function createService(ServiceLocatorInterface $serviceLocator)
8686
if (defined('DOMPDF_AUTOLOAD_PREPEND') === false) {
8787
define("DOMPDF_AUTOLOAD_PREPEND", false);
8888
}
89+
90+
if (defined('DOMPDF_ADMIN_USERNAME') === false) {
91+
define("DOMPDF_ADMIN_USERNAME", false);
92+
}
93+
94+
if (defined('DOMPDF_ADMIN_PASSWORD') === false) {
95+
define("DOMPDF_ADMIN_PASSWORD", false);
96+
}
97+
8998

9099
foreach ($config as $key => $value) {
91100
if (! array_key_exists($key, static::$configCompatMapping)) {

0 commit comments

Comments
 (0)