Class ConfigurationRegistry
Registry for the configuration
BAV uses this static container for its runtime configuration. Per default the
registry is initialized with the malkusch\bav\DefaultConfiguration
. You can set your
own configuration with malkusch\bav\ConfigurationRegistry::setConfiguration()
or preferably by providing the
file bav/configuration.php. This file should return a malkusch\bav\Configuration
object:
<?php namespace malkusch\bav; $configuration = new DefaultConfiguration(); $pdo = new \PDO("mysql:host=localhost;dbname=test"); $configuration->setDataBackendContainer(new PDODataBackendContainer($pdo)); $configuration->setUpdatePlan(new AutomaticUpdatePlan()); return $configuration;
Namespace: malkusch\bav
License: GPL
Author: Markus Malkusch <markus@malkusch.de>
See:
Link: Donations
Api
Located at ConfigurationRegistry.php
License: GPL
Author: Markus Malkusch <markus@malkusch.de>
See:
malkusch\bav\Configuration
Link: Donations
Api
Located at ConfigurationRegistry.php
public static
|
|
public static
|
#
setConfiguration(
Register a configuration programmatically. |
public static
|
string |
BAV_PATH
|
"/../../configuration.php" |
|
string |
INCLUDE_PATH
|
"bav/configuration.php" |