Documentation

ModuleSetup extends Command
in package

Proof of concept: copies MISSING default settings from each installed module's z_config/z_settings.ini into the app's settings file. Existing keys are never touched, existing lines are never rewritten; the merge is append-only and idempotent. Run manually, never at boot.

Table of Contents

RESERVED_KEYS  = ["allow_env_config", "showErrors", "maintenance_mode", "health_endpoint_enabled", "uploadFolder", "rootDirectory", "host", "defaultIndex", "execution_type", "modules", "modules_disabled"]
Settings a module must never introduce: framework behavior switches and infrastructure credentials stay under the operator's control.
RESERVED_PREFIXES  = ["db", "logger_", "mail_", "z_", "config_"]
configure()  : void
execute()  : int
parseIniFile()  : array<string|int, mixed>
Reads a flat settings ini with inline ;/# treated as content, using the same workaround as the bootstrap Configuration loader.
validate()  : string|null
Returns an error description, or null when the pair is safe to append.

Constants

RESERVED_KEYS

Settings a module must never introduce: framework behavior switches and infrastructure credentials stay under the operator's control.

private mixed RESERVED_KEYS = ["allow_env_config", "showErrors", "maintenance_mode", "health_endpoint_enabled", "uploadFolder", "rootDirectory", "host", "defaultIndex", "execution_type", "modules", "modules_disabled"]

RESERVED_PREFIXES

private mixed RESERVED_PREFIXES = ["db", "logger_", "mail_", "z_", "config_"]

Methods

configure()

protected configure() : void
Return values
void

execute()

protected execute(InputInterface $in, OutputInterface $out) : int
Parameters
$in : InputInterface
$out : OutputInterface
Return values
int

parseIniFile()

Reads a flat settings ini with inline ;/# treated as content, using the same workaround as the bootstrap Configuration loader.

private parseIniFile(string $file) : array<string|int, mixed>
Parameters
$file : string
Return values
array<string|int, mixed>

validate()

Returns an error description, or null when the pair is safe to append.

private validate(string $key, string $value) : string|null
Parameters
$key : string
$value : string
Return values
string|null

Search results