mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-09 01:16:08 +01:00
1a6b238b1c
This patch moves frontend-editing intialisation from the EditDocumentController (EXT:backend) to a signal listener in EXT:feedit. Step towards extracting EXT:feedit to TER. Change-Id: I09a7e5a2205e7020e7145023d7d63c61d9be508c Resolves: #80244 Releases: master Reviewed-on: https://review.typo3.org/52011 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com>
14 lines
532 B
PHP
14 lines
532 B
PHP
<?php
|
|
defined('TYPO3_MODE') or die();
|
|
|
|
// Register the edit panel view.
|
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']['edit'] = \TYPO3\CMS\Feedit\FrontendEditPanel::class;
|
|
|
|
if (TYPO3_MODE === 'FE') {
|
|
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
|
|
\TYPO3\CMS\Backend\Controller\EditDocumentController::class,
|
|
'initAfter',
|
|
\TYPO3\CMS\Feedit\FrontendEditAssetLoader::class,
|
|
'attachAssets'
|
|
);
|
|
}
|