Support TYPO3 v11 (#5)

This commit is contained in:
Daniel Siepmann 2022-11-30 10:56:43 +01:00 committed by GitHub
parent 92c28ef25b
commit ae896befd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 31 deletions

View file

@ -455,20 +455,7 @@ class DebuggerUtility
}
$dump .= ' => ';
$property->setAccessible(true);
$visibility = ($property->isProtected() ? 'protected' : ($property->isPrivate() ? 'private' : 'public'));
if ($plainText) {
$dump .= self::ansiEscapeWrap($visibility, '42;30', $ansiColors) . ' ';
} else {
$dump .= '<span class="extbase-debug-visibility">' . $visibility . '</span>';
}
$dump .= self::renderDump($property->getValue($object), $level, $plainText, $ansiColors);
if ($object instanceof AbstractDomainObject && !$object->_isNew() && $object->_isDirty($property->getName())) {
if ($plainText) {
$dump .= ' ' . self::ansiEscapeWrap('modified', '43;30', $ansiColors);
} else {
$dump .= '<span class="extbase-debug-dirty">modified</span>';
}
}
}
foreach ($methods as $method) {
@ -483,20 +470,7 @@ class DebuggerUtility
. htmlspecialchars(self::shortenMethodName($method->getName()), ENT_COMPAT) . '</span>';
}
$dump .= ' => ';
$visibility = ($method->isProtected() ? 'protected' : ($method->isPrivate() ? 'private' : 'public'));
if ($plainText) {
$dump .= self::ansiEscapeWrap($visibility, '42;30', $ansiColors) . ' ';
} else {
$dump .= '<span class="extbase-debug-visibility">' . $visibility . '</span>';
}
$dump .= self::renderDump($method->invoke($object), $level, $plainText, $ansiColors);
if ($object instanceof AbstractDomainObject && !$object->_isNew() && $object->_isDirty($method->getName())) {
if ($plainText) {
$dump .= ' ' . self::ansiEscapeWrap('modified', '43;30', $ansiColors);
} else {
$dump .= '<span class="extbase-debug-dirty">modified</span>';
}
}
}
}
}

View file

@ -26,11 +26,11 @@
}
},
"require": {
"php": "^7.2",
"typo3/cms-core": "^10.4",
"typo3/cms-extbase": "^10.4",
"typo3/cms-fluid": "^10.4",
"typo3/cms-frontend": "^10.4"
"php": "~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0",
"typo3/cms-core": "^10.4 || ^11.5",
"typo3/cms-extbase": "^10.4 || ^11.5",
"typo3/cms-fluid": "^10.4 || ^11.5",
"typo3/cms-frontend": "^10.4 || ^11.5"
},
"config": {
"sort-packages": true