continue with getter/setter removal

This commit is contained in:
Dennis Eichhorn 2023-05-30 04:15:38 +02:00
parent d6015af310
commit ce94bea9e1
3 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ final class BackendController extends Controller
public function loadLanguage(RequestAbstract $request, ResponseAbstract $response) : void
{
$languages = $this->app->moduleManager->getLanguageFiles($request);
$langCode = $response->getLanguage();
$langCode = $response->header->l11n->language;
// Add application navigation
$languages[] = '/Web/' . ($this->app->appName) . '/lang/Navigation';

View File

@ -72,7 +72,7 @@ final class SearchController extends Controller
}
$name = \mb_strtolower($this->app->l11nManager->getText(
$response->getLanguage(),
$response->header->l11n->language,
'Navigation', '0',
$element->name,
));
@ -109,7 +109,7 @@ final class SearchController extends Controller
private function loadLanguage(RequestAbstract $request, ResponseAbstract $response, string $app) : void
{
$languages = $this->app->moduleManager->getLanguageFiles($request, $app);
$langCode = $response->getLanguage();
$langCode = $response->header->l11n->language;
foreach ($languages as $path) {
$path = __DIR__ . '/../../..' . $path . '.' . $langCode . '.lang.php';

View File

@ -106,7 +106,7 @@ final class TimerecordingController extends Controller
public function loadLanguage(RequestAbstract $request, ResponseAbstract $response) : void
{
$languages = $this->app->moduleManager->getLanguageFiles($request);
$langCode = $response->getLanguage();
$langCode = $response->header->l11n->language;
foreach ($languages as $path) {
$path = __DIR__ . '/../../..' . $path . '.' . $langCode . '.lang.php';