Skip to content

Commit 87cdc87

Browse files
authored
Merge pull request #47 from kdambekalns/fix-flow-bc
TASK: Make compatible with Flow 2.3 again
2 parents 9861438 + f051c35 commit 87cdc87

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Classes/Flowpack/ElasticSearch/Indexer/Object/ObjectIndexer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Flowpack\ElasticSearch\Domain\Model\GenericType;
1919
use TYPO3\Flow\Annotations as Flow;
2020
use TYPO3\Flow\Reflection\ObjectAccess;
21-
use TYPO3\Flow\Utility\TypeHandling;
2221

2322
/**
2423
* This serves functionality for indexing objects
@@ -95,7 +94,7 @@ public function indexObject($object, $signalInformation = null, Client $client =
9594
*/
9695
protected function getIndexablePropertiesAndValuesFromObject($object)
9796
{
98-
$className = TypeHandling::getTypeForValue($object);
97+
$className = $this->reflectionService->getClassNameByObject($object);
9998
$data = [];
10099
foreach ($this->indexInformer->getClassProperties($className) as $propertyName) {
101100
if (ObjectAccess::isPropertyGettable($object, $propertyName) === false) {
@@ -171,7 +170,7 @@ protected function getIndexTypeForObject($object, Client $client = null)
171170
if ($client === null) {
172171
$client = $this->client;
173172
}
174-
$className = TypeHandling::getTypeForValue($object);
173+
$className = $this->reflectionService->getClassNameByObject($object);
175174
$indexAnnotation = $this->indexInformer->getClassAnnotation($className);
176175
if ($indexAnnotation === null) {
177176
return null;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "This package provides wrapper functionality for the Elasticsearch engine.",
66
"require": {
77
"ext-curl": "*",
8-
"typo3/flow": "~3.0"
8+
"typo3/flow": "~2.3"
99
},
1010
"autoload": {
1111
"psr-0": {

0 commit comments

Comments
 (0)