8require_once
$baseDir.DIRECTORY_SEPARATOR.
'lib'.DIRECTORY_SEPARATOR.
'_autoload.php';
9require_once SimpleSAML\Utils\Config::getConfigDir().DIRECTORY_SEPARATOR.
'config.php';
11echo
"Initializing Metadata Database...".PHP_EOL;
13# Iterate through configured metadata sources and ensure
14# that a PDO source exists.
16 # If pdo is configured, create the new handler and initialize the DB.
17 if (
$source[
'type'] ===
"pdo") {
19 $result = $metadataStorageHandler->initDatabase();
22 echo
"Failed to initialize metadata database.".PHP_EOL;
24 echo
"Successfully initialized metadata database.".PHP_EOL;
An exception for terminatinating execution or to throw for unit testing.