[TASK] Use name-resolution instead of strings where possible: 3
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Reflection / ReflectionService.php
index 8737f39..f7a2d86 100644 (file)
@@ -450,13 +450,13 @@ class ReflectionService implements \TYPO3\CMS\Core\SingletonInterface {
                        throw new Exception\UnknownClassException('The classname "' . $className . '" was not found and thus can not be reflected.', 1278450972);
                }
                $classSchema = $this->objectManager->get(\TYPO3\CMS\Extbase\Reflection\ClassSchema::class, $className);
-               if (is_subclass_of($className, 'TYPO3\\CMS\\Extbase\\DomainObject\\AbstractEntity')) {
+               if (is_subclass_of($className, \TYPO3\CMS\Extbase\DomainObject\AbstractEntity::class)) {
                        $classSchema->setModelType(ClassSchema::MODELTYPE_ENTITY);
                        $possibleRepositoryClassName = ClassNamingUtility::translateModelNameToRepositoryName($className);
                        if (class_exists($possibleRepositoryClassName)) {
                                $classSchema->setAggregateRoot(TRUE);
                        }
-               } elseif (is_subclass_of($className, 'TYPO3\\CMS\\Extbase\\DomainObject\\AbstractValueObject')) {
+               } elseif (is_subclass_of($className, \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject::class)) {
                        $classSchema->setModelType(ClassSchema::MODELTYPE_VALUEOBJECT);
                }
                foreach ($this->getClassPropertyNames($className) as $propertyName) {