Skip to content

Commit d032b5a

Browse files
committed
fix(Elasticsearch): use output config when provided
1 parent fa6a5e4 commit d032b5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Elasticsearch/State/CollectionProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public function provide(Operation $operation, array $uriVariables = [], array $c
8787
$documents = $documents->asArray();
8888
}
8989

90+
if (\is_string($operation->getOutput()) && class_exists($operation->getOutput())) {
91+
$resourceClass = $operation->getOutput();
92+
}
93+
9094
return new Paginator(
9195
$this->denormalizer,
9296
$documents,

0 commit comments

Comments
 (0)