Internals
Settings class
Settings
Class
Settings
class is the main entry point for telling Instructor where to look for its configuration. It allows you to set up path of Instructor’s configuration directory and access Instructor settings.
Settings
class provides the following methods:
setPath(string $path)
: Set the path to Instructor’s configuration directorygetPath(): string
: Get current path to Instructor’s configuration directoryhas($group, $key): bool
: Check if a specific setting exists in Instructor’s configurationget($group, $key, $default): mixed
: Get a specific setting from Instructor’s configurationset($group, $key, $value)
: Set a specific setting in Instructor’s configuration
You won’t usually need to use these methods directly, but they are used internally by Instructor to access configuration settings.