\Anax\CommonConfigureTrait

Trait implementing reading from config-file and storing options in $this->config.

Summary

Methods
Properties
Constants
configure()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$config
N/A

Properties

$config

$config : array<mixed,>

Type

array<mixed,> — store the configuration in this array.

Methods

configure()

configure(array<mixed,>|string  $what) : self

Read configuration from file or array, if a file, first check in ANAX_APP_PATH/config and then in ANAX_INSTALL_PATH/config.

Parameters

array<mixed,>|string $what

is an array with key/value config options or a file to be included which returns such an array.

Throws

\Anax\Common\Exception

when argument if not a filer nor an array.

Returns

self —

for chaining.