Deprecation: #84641 - Deprecated AdminPanel related methods and properties in FrontendBackendUserAuthentication 

See forge#84641

Description 

The admin panel has been extracted into an own extension. To enable users to de-activate the admin panel completely, the hard coupling between the extension and other parts of the core had to be resolved. The admin panel now takes care of its own initialization and provides API methods related to its functionality. The following API methods and properties located in FrontendBackendUserAuthentication have been marked as deprecated:

  • TYPO3CMSBackendFrontendBackendUserAuthentication::$adminPanel
  • TYPO3CMSBackendFrontendBackendUserAuthentication::$extAdminConfig
  • TYPO3CMSBackendFrontendBackendUserAuthentication::$extAdmEnabled
  • TYPO3CMSBackendFrontendBackendUserAuthentication::initializeAdminPanel()
  • TYPO3CMSBackendFrontendBackendUserAuthentication::initializeFrontendEdit()
  • TYPO3CMSBackendFrontendBackendUserAuthentication::isFrontendEditingActive()
  • TYPO3CMSBackendFrontendBackendUserAuthentication::displayAdminPanel()
  • TYPO3CMSBackendFrontendBackendUserAuthentication::isAdminPanelVisible()

Impact 

Using any of the methods will trigger a deprecation warning.

Affected Installations 

Any installation directly calling one of the mentioned methods or properties.

Migration 

  • TYPO3CMSBackendFrontendBackendUserAuthentication::$adminPanel - use MainController of EXT:adminpanel instead
  • TYPO3CMSBackendFrontendBackendUserAuthentication::$extAdminConfig - load directly from TSConfig if needed
  • TYPO3CMSBackendFrontendBackendUserAuthentication::$extAdmEnabled - check directly against TSConfig if necessary

Both initialization methods TYPO3CMSBackendFrontendBackendUserAuthentication::initializeAdminPanel and TYPO3CMSBackendFrontendBackendUserAuthentication::initializeFrontendEdit were rewritten as PSR-15 middlewares, remove any calls as they are not necessary anymore.

  • TYPO3CMSBackendFrontendBackendUserAuthentication::isFrontendEditingActive and TYPO3CMSBackendFrontendBackendUserAuthentication::isAdminPanelVisible - check against TSFE directly
  • TYPO3CMSBackendFrontendBackendUserAuthentication::displayAdminPanel - use MainController::render() instead