Config
in package
Class Config
Tags
Table of Contents
- get() : mixed|null
- Create new configuration instances or return a shared instance
- injectMock() : mixed
- Helper method for injecting mock instances while testing.
- reset() : mixed
- Resets the static arrays
Methods
get()
Create new configuration instances or return a shared instance
public
static get(string $name[, bool $getShared = true ]) : mixed|null
Parameters
- $name : string
-
Configuration name
- $getShared : bool = true
-
Use shared instance
Return values
mixed|null —injectMock()
Helper method for injecting mock instances while testing.
public
static injectMock(string $name, object $instance) : mixed
Parameters
- $name : string
- $instance : object
Return values
mixed —reset()
Resets the static arrays
public
static reset() : mixed