mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-22 06:26:09 +01:00
[TASK] Cleanup and deprecate TYPO3_DB occurrences
All instances of $GLOBALS[TYPO3_DB] in the TYPO3 Core classes except for certain highly used functionalities have been removed. The places where the TYPO3 Core is expected to have subclasses within extensions have been marked for deprecation. Resolves: #78224 Releases: master Change-Id: Ie65878264679b93940ac9fb86c4758576d98c550 Reviewed-on: https://review.typo3.org/49824 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org>
This commit is contained in:
parent
16e45d4b8b
commit
a359831c99
1 changed files with 2 additions and 11 deletions
|
@ -15,7 +15,6 @@ namespace TYPO3\CMS\Feedit;
|
|||
*/
|
||||
use TYPO3\CMS\Backend\FrontendBackendUserAuthentication;
|
||||
use TYPO3\CMS\Backend\Utility\BackendUtility;
|
||||
use TYPO3\CMS\Core\Database\DatabaseConnection;
|
||||
use TYPO3\CMS\Core\Imaging\Icon;
|
||||
use TYPO3\CMS\Core\Imaging\IconFactory;
|
||||
use TYPO3\CMS\Core\Type\Bitmask\JsConfirmation;
|
||||
|
@ -45,13 +44,6 @@ class FrontendEditPanel
|
|||
*/
|
||||
protected $frontendController;
|
||||
|
||||
/**
|
||||
* Property for accessing DatabaseConnection centrally
|
||||
*
|
||||
* @var DatabaseConnection
|
||||
*/
|
||||
protected $databaseConnection;
|
||||
|
||||
/**
|
||||
* @var FrontendBackendUserAuthentication
|
||||
*/
|
||||
|
@ -65,13 +57,12 @@ class FrontendEditPanel
|
|||
/**
|
||||
* Constructor for the edit panel
|
||||
*
|
||||
* @param DatabaseConnection $databaseConnection
|
||||
* @param mixed $_ Previous the database connection
|
||||
* @param TypoScriptFrontendController $frontendController
|
||||
* @param FrontendBackendUserAuthentication $backendUser
|
||||
*/
|
||||
public function __construct(DatabaseConnection $databaseConnection = null, TypoScriptFrontendController $frontendController = null, FrontendBackendUserAuthentication $backendUser = null)
|
||||
public function __construct($_ = null, TypoScriptFrontendController $frontendController = null, FrontendBackendUserAuthentication $backendUser = null)
|
||||
{
|
||||
$this->databaseConnection = $databaseConnection ?: $GLOBALS['TYPO3_DB'];
|
||||
$this->frontendController = $frontendController ?: $GLOBALS['TSFE'];
|
||||
$this->backendUser = $backendUser ?: $GLOBALS['BE_USER'];
|
||||
$this->cObj = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class);
|
||||
|
|
Loading…
Reference in a new issue