Skip to content
Snippets Groups Projects
Commit afa78360 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] FormEditorController uses new registration now

parent eac26e8e
No related branches found
No related tags found
1 merge request!11Feature security update
......@@ -99,8 +99,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
/**
* Read every registered file and create a registration entry in the registerArray if possible
*
* @internal
*/
public function registerExtensions() {
// clear registerArray
......
......@@ -26,6 +26,7 @@ namespace SGalinski\SgMail\XClass\Form;
***************************************************************/
use SGalinski\SgMail\Service\MailTemplateService;
use SGalinski\SgMail\Service\RegisterService;
use SGalinski\SgMail\Service\TypoScriptSettingsService;
use Symfony\Component\Yaml\Yaml;
use TYPO3\CMS\Core\Cache\CacheManager;
......@@ -137,8 +138,9 @@ class FormEditorController extends \TYPO3\CMS\Form\Controller\FormEditorControll
// write the new Register.php file
$this->writeRegisterFile($renderables, $extensionKey, $templateKey);
// call register function in mail template service class
MailTemplateService::registerExtensions();
// call register function in register service class
$registrationService = GeneralUtility::makeInstance(RegisterService::class);
$registrationService->registerExtensions();
// clear caches
$this->clearCaches();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment