From e0d6af261de575fdca995f817e04b30fc676b3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Planchat?= Date: Tue, 28 Sep 2021 09:05:56 +0200 Subject: [PATCH] Removing a deprecated class --- src/Transformer/BatchingTransformer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Transformer/BatchingTransformer.php b/src/Transformer/BatchingTransformer.php index 099c7b0..6818eea 100644 --- a/src/Transformer/BatchingTransformer.php +++ b/src/Transformer/BatchingTransformer.php @@ -2,7 +2,7 @@ namespace Kiboko\Component\Pipeline\Transformer; -use Kiboko\Component\Bucket\AcceptanceAppendableResultBucket; +use Kiboko\Component\Bucket\AppendableIteratorAcceptanceResultBucket; use Kiboko\Component\Bucket\EmptyResultBucket; use Kiboko\Contract\Bucket\ResultBucketInterface; use Kiboko\Contract\Pipeline\FlushableInterface; @@ -18,10 +18,10 @@ public function __construct(private int $batchSize) $this->bucket = new EmptyResultBucket(); } - /** @return \Generator|EmptyResultBucket, null|Type, void> */ + /** @return \Generator|EmptyResultBucket, null|Type, void> */ public function transform(): \Generator { - $this->bucket = new AcceptanceAppendableResultBucket(); + $this->bucket = new AppendableIteratorAcceptanceResultBucket(); $itemCount = 0; $line = yield new EmptyResultBucket(); @@ -31,7 +31,7 @@ public function transform(): \Generator if ($this->batchSize <= ++$itemCount) { $line = yield $this->bucket; $itemCount = 0; - $this->bucket = new AcceptanceAppendableResultBucket(); + $this->bucket = new AppendableIteratorAcceptanceResultBucket(); } else { $line = yield new EmptyResultBucket(); }