Skip to content

Commit eb93c34

Browse files
committed
Use the injected step execution into the reader
1 parent 64badfb commit eb93c34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
@@ -167,7 +167,7 @@ public function doExecute(StepExecution $stepExecution)
167167

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

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

0 commit comments

Comments
 (0)