---
title: "Deprecation: #76345 - Path prefixes in callUserFunction and getUserObj"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-76345"
source: "Changelog/8.2/Deprecation-76345-PathPrefixesInCallUserFunctionAndGetUserObj.rst"
typo3-version: "8.2"
typo3-major: 8
type: "deprecation"
issue: 76345
forge: "https://forge.typo3.org/issues/76345"
tags: ["Frontend", "Backend", "PHP-API"]
rendered: "2026-09-18T17:00:34+00:00"
---

# Deprecation: #76345 - Path prefixes in callUserFunction and getUserObj {#deprecation-76345}

See [forge#76345](https://forge.typo3.org/issues/76345)

## Description {#description}

The two methods `GeneralUtility::callUserFunc()` and `GeneralUtility::getUserObj()` allow the first parameter to
contain a file reference to the function/class to be called if prefixed with a colon.

An example would be `EXT:myext/Classes/MyClass.php:Benni\Myext\MyClass` for including the class.

Having the reference to the actual file is not needed since the composer autoloading mechanism takes care
of loading everything properly already since TYPO3 6.2.9.

## Impact {#impact}

Calling one of the methods above with a file reference prepended to the class name / function name will
trigger a deprecation log entry.

## Affected Installations {#affected-installations}

Any installation with a hook that is registered with the file prefix functionality.

## Migration {#migration}

Remove the file prefix when registering a hook and make use of the common autoloading functionality of
composer or via the fallback autoloader by TYPO3 to achieve the same functionality automatically.
