Skip to content

Commit f5dfa0c

Browse files
committed
Merge branch 'develop' of github.com:PHPJasper/phpjasper into develop
2 parents d313604 + fdfd45e commit f5dfa0c

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)