Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.09 KB

Deprecation-83475-AggregateValidatorInformationInClassSchema-1.rst

File metadata and controls

41 lines (25 loc) · 1.09 KB

Deprecation: #83475 - Aggregate validator information in class schema

See :issue:`83475`

Description

The method TYPO3CMSExtbaseMvcControllerActionController::getActionMethodParameters is deprecated and will be removed in TYPO3 v10.0

Impact

The method is not considered public api and it is unlikely that the methods is used in the wild. If you rely on that method, please migrate your code base.

Affected Installations

All installations that use that method.

Migration

Use the ClassSchema class and get all necessary information from it. Example:

$reflectionService = $objectManager->get(\TYPO3\CMS\Extbase\Reflection\ReflectionService::class);
$methods = $reflectionService->getClassSchema($className)->getMethods();
$actions = array_filter($methods, function($method){
    return $method['isAction'];
});
.. index:: PHP-API, FullyScanned