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

[TASK] Minor code improvements

parent 94333459
No related branches found
Tags 3.5.5
1 merge request!11Feature security update
......@@ -49,7 +49,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
private $registerArray = [];
/**
* Get all registered templates from the cache
* Get all registered templates from the cache. if the cache expired, the entries are generated
*
* @return array
* @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
......@@ -107,7 +107,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
}
// read automatically created extension registrations and write the entries
// get the location where automatic registrations should be stored
$configurationLocation = $this->getRegistrationPath();
$registerFolder = GeneralUtility::getFileAbsFileName(
$configurationLocation
......@@ -176,7 +175,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
$templateDirectoryParts = GeneralUtility::trimExplode('_', $templateKey);
$templateDirectory = '';
foreach ($templateDirectoryParts as $part) {
$templateDirectory .= ucfirst($part);
$templateDirectory .= \ucfirst($part);
}
}
......@@ -214,7 +213,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
$tsSettings = $typoScriptSettingsService->getSettings(0, 'tx_sgmail');
// get the location where automatic registrations should be stored
return 'EXT:' . $tsSettings['mail']['configurationLocation'] . '/' . RegisterService::CONFIG_PATH;
return 'EXT:' . $tsSettings['mail']['configurationLocation'] . '/' . self::CONFIG_PATH;
}
/**
......@@ -227,7 +226,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
$cacheManager = $objectManager->get(CacheManager::class);
/** @var FrontendInterface $cache */
$cache = $cacheManager->getCache(RegisterService::CACHE_NAME);
$cache = $cacheManager->getCache(self::CACHE_NAME);
/** @var FrontendInterface $cache */
$cache->flush();
}
......
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