libretime/legacy/application/configs/airtime-conf-production.php

35 lines
1.1 KiB
PHP
Raw Permalink Normal View History

<?php
2021-10-11 16:10:47 +02:00
// This file generated by Propel 1.5.2 convert-conf target
2021-10-06 17:32:14 +02:00
// from XML runtime conf file /home/james/src/airtime/legacy/build/runtime-conf.xml
/* The original name of this file is airtime-conf.php but since we need to make custom changes
* to it I've renamed it so that our changes aren't removed everytime we regenerate a database schema.
* our custom changes requires the database parameters to be loaded from the config file so
* that the user can customize these.
*/
2013-01-14 20:43:02 +01:00
$CC_CONFIG = Config::getConfig();
$dbhost = $CC_CONFIG['dsn']['host'];
$dbport = $CC_CONFIG['dsn']['port'];
2012-01-09 23:47:58 +01:00
$dbname = $CC_CONFIG['dsn']['database'];
$dbuser = $CC_CONFIG['dsn']['username'];
$dbpass = $CC_CONFIG['dsn']['password'];
2021-10-11 16:10:47 +02:00
$conf = [
'datasources' => [
'airtime' => [
'adapter' => 'pgsql',
'connection' => [
'dsn' => "pgsql:host={$dbhost};port={$dbport};dbname={$dbname};user={$dbuser};password={$dbpass}",
2021-10-11 16:10:47 +02:00
],
],
'default' => 'airtime',
],
'generator_version' => '1.7.3-dev',
2021-10-11 16:10:47 +02:00
];
$conf['classmap'] = include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-airtime-conf.php';
return $conf;