class YamlConfigurationHandler extends ConfigurationHandler (View source)

Class YamlConfiguration

Properties

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

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

NoYamlConfigurationFoundException

void writeConfiguration()

Return Value

void