Add todo for performance improvements

This commit is contained in:
Dennis Eichhorn 2019-09-07 08:45:53 +02:00
parent 1db626c81e
commit 2fb9a04330

View File

@ -99,6 +99,7 @@ final class BackendController extends Controller
* @param ResponseAbstract $response Response
*
* @return void
* @todo: this is slow maybe cache it per user? or maybe push it into one large language file which is stored in this module?
*
* @since 1.0.0
* @codeCoverageIgnore
@ -108,6 +109,7 @@ final class BackendController extends Controller
$languages = $this->app->moduleManager->getLanguageFiles($request);
$langCode = $response->getHeader()->getL11n()->getLanguage();
// @todo: this should be in one file I guess? or will this be worst because getLanguageFiles currently only returns a subset of all files?
foreach ($languages as $path) {
$path = __DIR__ . '/../../..' . $path . '.' . $langCode . '.lang.php';