airtime-conf-production.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. // This file generated by Propel 1.5.2 convert-conf target
  3. // from XML runtime conf file /home/james/src/airtime/airtime_mvc/build/runtime-conf.xml
  4. /* The original name of this file is airtime-conf.php but since we need to make custom changes
  5. * to it I've renamed it so that our changes aren't removed everytime we regenerate a database schema.
  6. * our custom changes requires the database parameters to be loaded from /etc/airtime/airtime.conf so
  7. * that the user can customize these.
  8. */
  9. $CC_CONFIG = Config::getConfig();
  10. $dbhost = $CC_CONFIG['dsn']['hostspec'];
  11. $dbname = $CC_CONFIG['dsn']['database'];
  12. $dbuser = $CC_CONFIG['dsn']['username'];
  13. $dbpass = $CC_CONFIG['dsn']['password'];
  14. $conf = array (
  15. 'datasources' =>
  16. array (
  17. 'airtime' =>
  18. array (
  19. 'adapter' => 'pgsql',
  20. 'connection' =>
  21. array (
  22. 'dsn' => "pgsql:host=$dbhost;port=5432;dbname=$dbname;user=$dbuser;password=$dbpass",
  23. ),
  24. ),
  25. 'default' => 'airtime',
  26. ),
  27. 'generator_version' => '1.5.2',
  28. );
  29. $conf['classmap'] = include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classmap-airtime-conf.php');
  30. return $conf;