Skip to content

Commit 691756e

Browse files
authored
Merge pull request #59 from PHPJasper/develop
add support for resource option
2 parents 204f263 + 4c335a1 commit 691756e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGES

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Release Notes - PHPJasper - Version 2.2
2+
========================================================
3+
** Improvement: https://github.com/PHPJasper/phpjasper/issues/30
4+
* add support for resource option
5+
________________________________________________________
6+
17
Release Notes - PHPJasper - Version 2.1
28
========================================================
39
** Refactoring

src/PHPJasper.php

+5
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ public function process(string $input, string $output, array $options = [])
123123
foreach ($options['db_connection'] as $key => $value) {
124124
$this->command .= " {$mapDbParams[$key]} {$value}";
125125
}
126+
127+
if ($options['resources']) {
128+
$this->command .= " -r {$options['resources']}";
129+
}
126130
}
127131

128132
return $this;
@@ -138,6 +142,7 @@ protected function parseProcessOptions(array $options)
138142
$defaultOptions = [
139143
'format' => ['pdf'],
140144
'params' => [],
145+
'resources' => false,
141146
'locale' => false,
142147
'db_connection' => []
143148
];

0 commit comments

Comments
 (0)