Skip to content

Commit 0bb6d23

Browse files
committed
Merge branch 'maintenance/pim_beta1' into override-job-configuration
2 parents 356e457 + eb93c34 commit 0bb6d23

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Entity/StepExecution.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,14 @@ public function setWriteCount($writeCount)
302302
return $this;
303303
}
304304

305+
/**
306+
* Increment the write count by 1
307+
*/
308+
public function incrementWriteCount()
309+
{
310+
$this->writeCount++;
311+
}
312+
305313
/**
306314
* Returns the current number of items filtered out of this execution
307315
*

Item/ItemReaderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ interface ItemReaderInterface
3232
* @throws \Exception if an there is a non-specific error.
3333
* @return null|mixed Returns false in case of reading error
3434
*/
35-
public function read(StepExecution $stepExecution);
35+
public function read();
3636
}

Step/ItemStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function doExecute(StepExecution $stepExecution)
166166

167167
$this->initializeStepComponents($stepExecution);
168168

169-
while (($item = $this->reader->read($stepExecution)) !== null) {
169+
while (($item = $this->reader->read()) !== null) {
170170
if (false === $item) {
171171
$this->dispatchStepExecutionEvent(EventInterface::INVALID_READER_EXECUTION, $stepExecution);
172172
continue;

0 commit comments

Comments
 (0)