2011-11-29 22:07:38 +01:00
|
|
|
<?php
|
2021-10-11 16:10:47 +02:00
|
|
|
|
2011-11-29 22:07:38 +01: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
|
2011-11-29 22:07:38 +01:00
|
|
|
|
|
|
|
/* 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.
|
2022-02-04 11:00:41 +01:00
|
|
|
* our custom changes requires the database parameters to be loaded from the config file so
|
2011-11-29 22:07:38 +01:00
|
|
|
* that the user can customize these.
|
|
|
|
*/
|
2012-04-02 05:39:15 +02:00
|
|
|
|
2013-01-14 20:43:02 +01:00
|
|
|
$CC_CONFIG = Config::getConfig();
|
2011-11-29 22:07:38 +01:00
|
|
|
|
2022-02-04 15:03:01 +01:00
|
|
|
$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'];
|
2011-11-29 22:07:38 +01:00
|
|
|
|
2021-10-11 16:10:47 +02:00
|
|
|
$conf = [
|
|
|
|
'datasources' => [
|
|
|
|
'airtime' => [
|
|
|
|
'adapter' => 'pgsql',
|
|
|
|
'connection' => [
|
2022-02-04 15:03:01 +01:00
|
|
|
'dsn' => "pgsql:host={$dbhost};port={$dbport};dbname={$dbname};user={$dbuser};password={$dbpass}",
|
2021-10-11 16:10:47 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'default' => 'airtime',
|
|
|
|
],
|
Feature: Support php7.4 (#1354)
* Run CI tests against php 7.4
* Sort composer dependencies
* Remove unused Aws S3 php library
* Pin simplepie dependency to ^1.5
* Pin getid3 dependency to ^1.9
* Pin composer semver to ^3.2
* Pin php-amqplib to ^2.12
* Drop sentry logging support
* Update composer dependencies
* Move propel regenerate to Makefile
* Regenerate propel files with v1.7.0
* Pin propel orm to ^1.7
* Regenerate propel files with v1.7.2
* fix: generator_version in airtime-conf-production.php
* Replace propel/propel1 with jooola/propel1
* Regenerate propel files with v1.7.3-dev
* Fix php7.4 compatibility
Using php-cs-fixer:
'@PhpCsFixer' => true,
'concat_space' => ['spacing' => 'one'],
'ordered_class_elements' => false,
'yoda_style' => false,
'@PHP74Migration' => true,
'assign_null_coalescing_to_coalesce_equal' => false,
'ternary_to_null_coalescing' => false,
'heredoc_indentation' => false,
'@PHP74Migration:risky' => true,
'declare_strict_types' => false,
'void_return' => false,
'use_arrow_functions' => false,
* Fix pre-commit
2021-10-17 17:19:53 +02:00
|
|
|
'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';
|
|
|
|
|
2011-11-29 22:07:38 +01:00
|
|
|
return $conf;
|