Skip to content

Commit 05ff498

Browse files
fix(auto-prepend script): Set value before init as config is used in the init method
1 parent 8f07647 commit 05ff498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/auto-prepend/scripts/bounce-via-auto-prepend.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use CrowdSecBouncer\StandAloneBounce;
77

88
$bounce = new StandAloneBounce();
9-
$bounce->init($crowdSecStandaloneBouncerConfig);
109
$bounce->setDebug($crowdSecStandaloneBouncerConfig['debug_mode']);
10+
$bounce->setDisplayErrors($crowdSecStandaloneBouncerConfig['display_errors']);
11+
$bounce->init($crowdSecStandaloneBouncerConfig);
1112
$bounce->safelyBounce();

0 commit comments

Comments
 (0)