Skip to content
Corex

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).

__construct(string $environment, string $decidedBy)

Section titled “__construct(string $environment, string $decidedBy)”

Set in .env, by the network or by the corex_app_env option: the mode selector cannot change it.

The environment’s name, as a screen shows it.

Where the answer comes from, in words a site owner can act on.

The environment and where it is set, in one line: “Development (set by the operations mode)”.