2013-12-18 21:48:32 +01:00
|
|
|
<?php
|
2021-10-11 16:10:47 +02:00
|
|
|
|
2013-12-18 21:48:32 +01:00
|
|
|
error_reporting(E_ALL | E_STRICT);
|
|
|
|
|
2017-02-20 21:47:53 +01:00
|
|
|
// load composer autoloader
|
2021-09-11 04:20:50 +02:00
|
|
|
require_once __DIR__ . '/../../vendor/autoload.php';
|
2017-02-20 21:47:53 +01:00
|
|
|
|
2013-12-18 21:48:32 +01:00
|
|
|
// Define path to application directory
|
|
|
|
defined('APPLICATION_PATH')
|
2015-01-28 19:19:50 +01:00
|
|
|
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application/'));
|
|
|
|
|
|
|
|
// Define path to configs directory
|
|
|
|
define('CONFIG_PATH', APPLICATION_PATH . '/configs/');
|
2013-12-18 21:48:32 +01:00
|
|
|
|
|
|
|
// Define application environment
|
|
|
|
defined('APPLICATION_ENV')
|
|
|
|
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'));
|
|
|
|
|
|
|
|
// Ensure library/ is on include_path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-18 21:48:32 +01:00
|
|
|
realpath('./library'),
|
|
|
|
get_include_path(),
|
2021-10-11 16:10:47 +02:00
|
|
|
]));
|
2013-12-18 21:48:32 +01:00
|
|
|
|
2013-12-18 22:05:31 +01:00
|
|
|
// Ensure library/ is on include_path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-18 22:05:31 +01:00
|
|
|
get_include_path(),
|
2021-10-11 16:10:47 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../library'),
|
|
|
|
]));
|
2013-12-18 22:05:31 +01:00
|
|
|
|
2015-01-27 16:53:58 +01:00
|
|
|
// Ensure vendor/ is on the include path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-19 21:31:12 +01:00
|
|
|
get_include_path(),
|
2021-09-11 04:20:50 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../vendor'),
|
2021-10-11 16:10:47 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../vendor/zf1s/zend-loader/library'),
|
|
|
|
]));
|
2015-01-27 16:53:58 +01:00
|
|
|
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2015-01-27 16:53:58 +01:00
|
|
|
get_include_path(),
|
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
|
|
|
realpath(APPLICATION_PATH . '/../vendor/jooola/propel1/runtime/lib'),
|
2021-10-11 16:10:47 +02:00
|
|
|
]));
|
2013-12-19 21:31:12 +01:00
|
|
|
|
2013-12-19 17:16:06 +01:00
|
|
|
// Ensure library/ is on include_path
|
2021-10-11 16:10:47 +02:00
|
|
|
set_include_path(implode(PATH_SEPARATOR, [
|
2013-12-19 17:16:06 +01:00
|
|
|
get_include_path(),
|
2021-10-11 16:10:47 +02:00
|
|
|
realpath(APPLICATION_PATH . '/../../install_minimal/include'),
|
|
|
|
]));
|
2013-12-19 17:16:06 +01:00
|
|
|
|
2017-02-20 21:47:53 +01:00
|
|
|
require_once CONFIG_PATH . '/constants.php';
|
|
|
|
|
|
|
|
Logging::setLogPath(LIBRETIME_LOG_DIR . '/zendphp.log');
|
2014-01-24 17:39:15 +01:00
|
|
|
|
2013-12-18 22:05:31 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/common' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
|
|
|
//Propel classes.
|
|
|
|
set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2013-12-19 17:16:06 +01:00
|
|
|
//Services
|
|
|
|
set_include_path(APPLICATION_PATH . '/services' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2014-01-16 23:01:22 +01:00
|
|
|
//models
|
|
|
|
set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2014-02-05 21:37:47 +01:00
|
|
|
//Controllers.
|
|
|
|
set_include_path(APPLICATION_PATH . '/controllers' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2013-12-18 22:05:31 +01:00
|
|
|
//Controller plugins.
|
|
|
|
set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2014-01-07 00:08:57 +01:00
|
|
|
//test data
|
2014-01-24 22:08:38 +01:00
|
|
|
set_include_path(APPLICATION_PATH . '/../tests/application/testdata' . PATH_SEPARATOR . get_include_path());
|
2014-01-07 00:08:57 +01:00
|
|
|
|
2014-01-08 21:51:11 +01:00
|
|
|
//helper functions
|
|
|
|
set_include_path(APPLICATION_PATH . '/../tests/application/helpers' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2015-01-27 16:53:58 +01:00
|
|
|
//cloud storage files
|
|
|
|
set_include_path(APPLICATION_PATH . '/cloud_storage' . PATH_SEPARATOR . get_include_path());
|
|
|
|
|
2021-10-11 16:10:47 +02:00
|
|
|
require_once APPLICATION_PATH . '/configs/conf.php';
|
|
|
|
|
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
|
|
|
require_once 'jooola/propel1/runtime/lib/Propel.php';
|
2021-10-11 16:10:47 +02:00
|
|
|
Propel::init('../application/configs/airtime-conf-production.php');
|
2013-12-19 21:31:12 +01:00
|
|
|
|
2013-12-19 17:40:35 +01:00
|
|
|
Zend_Session::start();
|