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.
2 parents 43f91a8 + c3eaca7 commit fdfd45eCopy full SHA for fdfd45e
src/PHPJasper.php
@@ -71,10 +71,10 @@ class PHPJasper
71
/**
72
* PHPJasper constructor
73
*/
74
- public function __construct()
+ public function __construct(string $pathExecutable = null)
75
{
76
$this->executable = 'jasperstarter';
77
- $this->pathExecutable = __DIR__ . '/../bin/jasperstarter/bin';
+ $this->pathExecutable = $pathExecutable ?? __DIR__ . '/../bin/jasperstarter/bin';
78
$this->windows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : false;
79
}
80
0 commit comments