class ConfigurationHandler (View source)

Configuration class

Properties

protected array $configuration
protected string $cacheDir
protected string $path
protected string $cachePath
protected ConfigCache $confCache

Methods

__construct(string $cacheDir, boolean $debug, string $path)

No description

string
getCacheDir()

No description

array
load()

Load default configuration file.

array
getConfiguration()

No description

$this
setConfiguration(array $configuration)

Set configuration after validating against Roadiz Configuration Schema.

testDoctrineConnexion(array $connexion = [])

Test database connexion with given configuration.

array
loadFromFile(string $file)

No description

void
writeConfiguration()

No description

Details

__construct(string $cacheDir, boolean $debug, string $path)

Parameters

string $cacheDir
boolean $debug
string $path

string getCacheDir()

Return Value

string

array load()

Load default configuration file.

Return Value

array

array getConfiguration()

Return Value

array

$this setConfiguration(array $configuration)

Set configuration after validating against Roadiz Configuration Schema.

Parameters

array $configuration

Return Value

$this

testDoctrineConnexion(array $connexion = [])

Test database connexion with given configuration.

Parameters

array $connexion Doctrine array parameters

Exceptions

PDOException

protected array loadFromFile(string $file)

Parameters

string $file Absolute path to conf file

Return Value

array

Exceptions

NoConfigurationFoundException

void writeConfiguration()

Return Value

void