refactor(features): rename mock/payload/interface files per Lazar pattern
Convention now: <name>.repository.{ts,mock.ts,interface.ts}.
Renames .mock prefix to .mock suffix; drops .payload prefix from real
impls (canonical name = real impl); dot-separates the .repository
qualifier in interface filenames. Class names follow suit:
PayloadXRepository → XRepository; Mock* unchanged.
Refactor log: §1, §3
Spec: §9.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { SanitizedConfig } from "payload";
|
||||
import { marketingPagesContainer } from "./container";
|
||||
import { MARKETING_PAGES_SYMBOLS } from "./symbols";
|
||||
import { PayloadPagesRepository } from "../infrastructure/repositories/payload-pages.repository";
|
||||
import { PayloadSiteSettingsRepository } from "../infrastructure/repositories/payload-site-settings.repository";
|
||||
import { PagesRepository } from "../infrastructure/repositories/pages.repository";
|
||||
import { SiteSettingsRepository } from "../infrastructure/repositories/site-settings.repository";
|
||||
|
||||
export function bindProductionMarketingPages(config: SanitizedConfig): void {
|
||||
if (
|
||||
@@ -12,7 +12,7 @@ export function bindProductionMarketingPages(config: SanitizedConfig): void {
|
||||
}
|
||||
marketingPagesContainer
|
||||
.bind(MARKETING_PAGES_SYMBOLS.IPagesRepository)
|
||||
.toConstantValue(new PayloadPagesRepository(config));
|
||||
.toConstantValue(new PagesRepository(config));
|
||||
|
||||
if (
|
||||
marketingPagesContainer.isBound(
|
||||
@@ -25,5 +25,5 @@ export function bindProductionMarketingPages(config: SanitizedConfig): void {
|
||||
}
|
||||
marketingPagesContainer
|
||||
.bind(MARKETING_PAGES_SYMBOLS.ISiteSettingsRepository)
|
||||
.toConstantValue(new PayloadSiteSettingsRepository(config));
|
||||
.toConstantValue(new SiteSettingsRepository(config));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user