\PopApplicationInterface

Application interface

Summary

Methods
Constants
config()
registerConfig()
addConfigValue()
updateConfigValue()
deleteConfigValue()
mergeConfig()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

registerConfig()

registerConfig(mixed  $config) : \Pop\ApplicationInterface

Register a new configuration with the application

Parameters

mixed $config

Throws

\InvalidArgumentException

Returns

\Pop\ApplicationInterface

addConfigValue()

addConfigValue(string  $name, string  $value) : \Pop\ApplicationInterface

Add new value to config

Parameters

string $name
string $value

Returns

\Pop\ApplicationInterface

updateConfigValue()

updateConfigValue(string  $name, string  $value) : \Pop\ApplicationInterface

Update existing value in config

Parameters

string $name
string $value

Returns

\Pop\ApplicationInterface

deleteConfigValue()

deleteConfigValue(string  $name) : \Pop\ApplicationInterface

Replace existing value in config

Parameters

string $name

Returns

\Pop\ApplicationInterface

mergeConfig()

mergeConfig(mixed  $config, boolean  $preserve = false) : \Pop\ApplicationInterface

Merge new or altered config values with the existing config values

Parameters

mixed $config
boolean $preserve

Returns

\Pop\ApplicationInterface