Refactor helper drift in lib: centralize theme/translation and remove app() hotspots
This commit is contained in:
@@ -248,7 +248,7 @@ $allPublicPaths = array_values(array_unique(array_merge(
|
||||
defined('APP_PUBLIC_PATHS') ? APP_PUBLIC_PATHS : [],
|
||||
$moduleRegistry->getPublicPaths()
|
||||
)));
|
||||
$accessControl = new AccessControl($allPublicPaths);
|
||||
$accessControl = new AccessControl($allPublicPaths, app(IntendedUrlService::class));
|
||||
$accessControl->requireAuthOrRedirect($pathWithoutLocale, !empty($_SESSION['user']['id']));
|
||||
|
||||
// ── 9. Code analysis (debug only) ──────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user