diff --git a/Classes/Service/RegisterService.php b/Classes/Service/RegisterService.php index df540cd54fb9703e5155816792944eee3c046122..63e04c361895656b5bcabe64805bf38a697e78c7 100644 --- a/Classes/Service/RegisterService.php +++ b/Classes/Service/RegisterService.php @@ -48,27 +48,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface { */ private $registerArray = []; - /** - * contains the paths to the registration files - * - * @var array - */ - private $registrationFiles = []; - - /** - * Enables extensions to add their registration files - * - * @param string $pathToRegisterFile - * @api - */ - public function register($pathToRegisterFile) { - if (\file_exists($pathToRegisterFile)) { - $this->registrationFiles[] = [ - 'path' => $pathToRegisterFile - ]; - } - } - /** * Get all registered templates from the cache * @@ -80,7 +59,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface { public function getRegisterArray(): array { $cacheManager = GeneralUtility::makeInstance(CacheManager::class); $cache = $cacheManager->getCache(self::CACHE_NAME); - $cacheId = \md5('sg_mail'); + $cacheId = 'sg_mail'; $entry = $cache->get($cacheId); if (!$entry) { @@ -223,16 +202,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface { ]; } - /** - * Get an array with a list of filepaths of all registration files - * - * @api - * @return array - */ - public function getRegistrationFiles(): array { - return $this->registrationFiles; - } - /** * Returns the path to the configured location where automatic mail template registrations should be * diff --git a/Classes/XClass/Form/FormEditorController.php b/Classes/XClass/Form/FormEditorController.php index abf5e5c4e675f5101699661952264edb4de55172..769a6196845fa9cfcd7d905c19d9b7a072faa3d8 100644 --- a/Classes/XClass/Form/FormEditorController.php +++ b/Classes/XClass/Form/FormEditorController.php @@ -139,7 +139,6 @@ class FormEditorController extends \TYPO3\CMS\Form\Controller\FormEditorControll // call register function in register service class $registrationService->getRegisterArray(); - $this->clearCaches(); }