ConfigurationAwareApplicationInterface

Extends ApplicationInterface

Application sub-interface defining an application class which is aware of its configuration

since

2.0.0

package

Joomla Framework

Methods

close

Method to close the application.

close( code) : 
inherited
since

2.0.0

Arguments

code

intThe exit code (optional; default is 0).

Response

void

execute

Execute the application.

execute() : 
inherited
since

2.0.0

Response

void

get

Returns a property of the object or the default value if the property is not set.

get( key,  default = null) : 
since

2.0.0

Arguments

key

stringThe name of the property.

default

mixedThe default value (optional) if none is set.

Response

mixedThe value of the configuration.

set

Modifies a property of the object, creating it if it does not already exist.

set( key,  value = null) : 
since

2.0.0

Arguments

key

stringThe name of the property.

value

mixedThe value of the property to set (optional).

Response

mixedPrevious value of the property

setConfiguration

Sets the configuration for the application.

setConfiguration(\Joomla\Registry\Registry config) : 
since

2.0.0

Arguments

config

RegistryA registry object holding the configuration.

Response

$this