mirror of
https://github.com/werkraum-media/fdebug.git
synced 2024-11-21 13:56:09 +01:00
Support TYPO3 v11 (#5)
This commit is contained in:
parent
92c28ef25b
commit
ae896befd4
2 changed files with 5 additions and 31 deletions
|
@ -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>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue