MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stampPhpWebRoots

Method stampPhpWebRoots

src/index.ts:1021–1025  ·  view source on GitHub ↗

Record the PHP web roots the index placed `$_SERVER['DOCUMENT_ROOT']` includes under (#3298), for a later sync to compare against.

(snapshot = this.resolver.getPhpWebRootSnapshot())

Source from the content-addressed store, hash-verified

1019
1020 /** Record the PHP web roots the index placed `$_SERVER['DOCUMENT_ROOT']` includes under (#3298), for a later sync to compare against. */
1021 private stampPhpWebRoots(snapshot = this.resolver.getPhpWebRootSnapshot()): void {
1022 try {
1023 this.queries.setMetadata(PHP_WEB_ROOTS_METADATA_KEY, snapshot);
1024 } catch { /* metadata is advisory */ }
1025 }
1026
1027 /** Record the module-config files the index was resolved by, for a later sync to compare against (see sync). */
1028 private stampModuleConfigSnapshot(): void {

Callers 2

indexAllMethod · 0.95
syncMethod · 0.95

Calls 2

getPhpWebRootSnapshotMethod · 0.80
setMetadataMethod · 0.80

Tested by

no test coverage detected