Settings Class
Settings is a read-only config loader used by Instructor packages.
Most relevant methods:
setPath(string $dir)- override config search pathflush()- clear cached config and reset custom pathshas(string $group, ?string $key = null)- check group/key existenceget(string $group, string $key, mixed $default = null)- read valuegetGroup(string $group)- read full config group as arrayhasGroup(string $group)- check if group file exists
- There is no mutable
set(group, key, value)API. - Path resolution supports both
INSTRUCTOR_CONFIG_PATHSandINSTRUCTOR_CONFIG_PATH.