fix(audit): restructure module pages to avoid admin/ path collision
Module pages must use a unique top-level directory (audit/) instead of nesting under admin/ which collides with core's pages/admin/ during module:build symlink creation. Routes still map admin/* URLs to the audit/ page directory via manifest route targets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,12 +18,12 @@ final class SecurityLoggingRuntimeContractTest extends TestCase
|
||||
sort($violations);
|
||||
|
||||
self::assertSame(
|
||||
['modules/audit/pages/admin/frontend-telemetry/ingest().php'],
|
||||
['modules/audit/pages/audit/frontend-telemetry/ingest().php'],
|
||||
$violations,
|
||||
"Unexpected error_log() usage outside the telemetry ingest fallback:\n" . implode("\n", $violations)
|
||||
);
|
||||
|
||||
$content = $this->readProjectFile('modules/audit/pages/admin/frontend-telemetry/ingest().php');
|
||||
$content = $this->readProjectFile('modules/audit/pages/audit/frontend-telemetry/ingest().php');
|
||||
self::assertStringContainsString(
|
||||
"error_log('[frontend-telemetry] ingest record_failed request_id=' . RequestContext::id());",
|
||||
$content
|
||||
|
||||
Reference in New Issue
Block a user