function prefixSessionVars(Slim
$app, Container
$container){ /** @var AntiXSS $antiXss */
$antiXss =
$container->
offsetGet('anti.xss'
);
// Save post parameters starting with 'c_' to session
$params =
$app->
request()->
params();
foreach ($params as $key =>
$value) { if (strpos($key, 'c_'
) !== false
) { $_SESSION['parameters'
][$key] =
$antiXss->
xss_clean($value);
} }}prefixSessionVars($app,
$container);
$selectedLanguage =
selectLanguage($container->
offsetGet('config'
)['languages'
]);
$translations =
require __DIR__ . "/../data/lang/
$selectedLanguage.php";
$container->
offsetSet('translations',
$translations);
/** @var TranslationService $translationService */