We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c11525c commit c3eaca7Copy full SHA for c3eaca7
src/PHPJasper.php
@@ -72,10 +72,10 @@ class PHPJasper
72
/**
73
* PHPJasper constructor
74
*/
75
- public function __construct()
+ public function __construct(string $pathExecutable = null)
76
{
77
$this->executable = 'jasperstarter';
78
- $this->pathExecutable = __DIR__ . '/../bin/jasperstarter/bin';
+ $this->pathExecutable = $pathExecutable ?? __DIR__ . '/../bin/jasperstarter/bin';
79
$this->windows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : false;
80
}
81
0 commit comments