mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-11 16:18:42 +00:00
Add todo for performance improvements
This commit is contained in:
parent
1db626c81e
commit
2fb9a04330
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user