Issue Bug Closed

#91873Bootstrap::initializeBackendAuthentication() documentation inconsistent

S P 07/27/20, 09:17 updated 12/02/25, 14:36

Description

This method is marked with:

internal This is not a public API method, do not use in own extensions@

However, the changelog https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Deprecation-85977-ExtbaseCommandControllersAndCliAnnotation.html?highlight=initializebackendauthentication say this:

> If anything related to DataHandler and Backend permission handling is necessary, you should run Bootstrap::initializeBackendAuthentication();

and the docs https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/DataHandler/UsingDataHandler/Index.html#dataHandler-cli-command say this:

> If anything related to DataHandler and backend permission handling is necessary, you should call this initialization method once in your execute() function:
>
> Bootstrap::initializeBackendAuthentication();

I’m confused, what is correct here? Is it safe/needed/obsolete to call this methode or not?

Reviews 2