Skip to content

Commit e70c3b7

Browse files
committed
[Commands] fixed DB injection - followup of #187
1 parent dbb1fbb commit e70c3b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SegmentAssignment/Indexer/Indexer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,15 @@ class Indexer implements IndexerInterface
6363
* @param string $segmentAssignmentQueueTable
6464
* @param StoredFunctionsInterface $storedFunctions
6565
* @param QueueBuilderInterface $queueBuilder
66-
* @param ConnectionInterface $db
6766
*/
68-
public function __construct(string $segmentAssignmentTable, string $segmentAssignmentIndexTable, string $segmentAssignmentQueueTable, StoredFunctionsInterface $storedFunctions, QueueBuilderInterface $queueBuilder, ConnectionInterface $db)
67+
public function __construct(string $segmentAssignmentTable, string $segmentAssignmentIndexTable, string $segmentAssignmentQueueTable, StoredFunctionsInterface $storedFunctions, QueueBuilderInterface $queueBuilder)
6968
{
7069
$this->setSegmentAssignmentTable($segmentAssignmentTable);
7170
$this->setSegmentAssignmentIndexTable($segmentAssignmentIndexTable);
7271
$this->setSegmentAssignmentQueueTable($segmentAssignmentQueueTable);
7372
$this->setStoredFunctions($storedFunctions);
7473
$this->setQueueBuilder($queueBuilder);
75-
$this->setDb($db);
74+
$this->setDb(\Pimcore\Db::get());
7675
}
7776

7877
/**

0 commit comments

Comments
 (0)