\FubberConfig

The Config class relies on LazyProp to store configuration data in a unique way. For example, the database connection is configured by adding a lazily evaluated property: $config->lazy('db', function() { return new PDO( .

.. ); });

Whenever some component need to access the database, the $config->db will be the PDO-instance requested. The connection is, however, not created until the $config->db property is accessed for the first time.

Summary

Methods
Properties
Constants
lazy()
__get()
No public properties found
No constants found
No protected methods found
$_lazyProps
N/A
No private methods found
No private properties found
N/A

Properties

$_lazyProps

$_lazyProps : 

Type

Methods

lazy()

lazy(string  $name, callable  $callback) : $this

Add a lazily evaluated property

Parameters

string $name
callable $callback

Returns

$this

__get()

__get(  $name) 

Parameters

$name