mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-11 14:28:40 +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
|
* @param ResponseAbstract $response Response
|
||||||
*
|
*
|
||||||
* @return void
|
* @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
|
* @since 1.0.0
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
|
|
@ -108,6 +109,7 @@ final class BackendController extends Controller
|
||||||
$languages = $this->app->moduleManager->getLanguageFiles($request);
|
$languages = $this->app->moduleManager->getLanguageFiles($request);
|
||||||
$langCode = $response->getHeader()->getL11n()->getLanguage();
|
$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) {
|
foreach ($languages as $path) {
|
||||||
$path = __DIR__ . '/../../..' . $path . '.' . $langCode . '.lang.php';
|
$path = __DIR__ . '/../../..' . $path . '.' . $langCode . '.lang.php';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user