SiteEnvironmentAnswer
Corex\Environment\SiteEnvironmentAnswer · class · Core layer
Whether this is a development, staging or production site, and the setting that said so (spec 113, FR-001).
Public API
Section titled “Public API”__construct(string $environment, string $decidedBy)
Section titled “__construct(string $environment, string $decidedBy)”isDevelopment(): bool
Section titled “isDevelopment(): bool”isStaging(): bool
Section titled “isStaging(): bool”isProduction(): bool
Section titled “isProduction(): bool”isLocked(): bool
Section titled “isLocked(): bool”Set in .env, by the network or by the corex_app_env option: the mode selector cannot change it.
label(): string
Section titled “label(): string”The environment’s name, as a screen shows it.
source(): string
Section titled “source(): string”Where the answer comes from, in words a site owner can act on.
summary(): string
Section titled “summary(): string”The environment and where it is set, in one line: “Development (set by the operations mode)”.