Skip to content

Commit fdfd45e

Browse files
authored
Merge pull request #334 from IcaroFP/master
PathExecutable parameterization
2 parents 43f91a8 + c3eaca7 commit fdfd45e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PHPJasper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ class PHPJasper
7171
/**
7272
* PHPJasper constructor
7373
*/
74-
public function __construct()
74+
public function __construct(string $pathExecutable = null)
7575
{
7676
$this->executable = 'jasperstarter';
77-
$this->pathExecutable = __DIR__ . '/../bin/jasperstarter/bin';
77+
$this->pathExecutable = $pathExecutable ?? __DIR__ . '/../bin/jasperstarter/bin';
7878
$this->windows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : false;
7979
}
8080

0 commit comments

Comments
 (0)