ConfigProfiles
in package
Singleton class which stores the registered configuration profiles
Table of Contents
- $instance : ConfigProfiles|null
- $knownProfiles : array<string|int, mixed>
- __construct() : mixed
- getInstance() : ConfigProfiles
- Returns static instance of ConfigProfiles
- registerProfile() : void
Properties
$instance
private
static ConfigProfiles|null
$instance
= null
$knownProfiles
private
array<string|int, mixed>
$knownProfiles
= []
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getInstance()
Returns static instance of ConfigProfiles
public
static getInstance() : ConfigProfiles
Tags
Return values
ConfigProfiles —registerProfile()
public
registerProfile(string $profileName, ConfigProfile $profile) : void
Parameters
- $profileName : string
-
Name of new profile to be registered
- $profile : ConfigProfile
-
Instance of new profile