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(int code) : void
inherited
since

2.0.0

Arguments

code

intThe exit code (optional; default is 0).

execute

Execute the application.

execute() : void
inherited
since

2.0.0

get

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

get(string key, mixed default = null) : mixed
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(string key, mixed value = null) : mixed
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) : $this
since

2.0.0

Arguments

config

\Joomla\Registry\RegistryA registry object holding the configuration.

Response

$this