📦 (mvc) switch to zf1s zf1
This commit is contained in:
parent
87b8ef4f91
commit
54b1a70249
|
@ -64,10 +64,10 @@ set_include_path(APPLICATION_PATH . '/common/' . PATH_SEPARATOR . get_include_pa
|
||||||
require_once 'autoload.php';
|
require_once 'autoload.php';
|
||||||
|
|
||||||
/** Zend_Application */
|
/** Zend_Application */
|
||||||
require_once 'Zend/Application.php';
|
|
||||||
$application = new Zend_Application(
|
$application = new Zend_Application(
|
||||||
APPLICATION_ENV,
|
APPLICATION_ENV,
|
||||||
CONFIG_PATH . 'application.ini'
|
CONFIG_PATH . 'application.ini',
|
||||||
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
require_once(APPLICATION_PATH . "logging/Logging.php");
|
require_once(APPLICATION_PATH . "logging/Logging.php");
|
||||||
|
|
|
@ -130,7 +130,8 @@ class Rest_MediaController extends Zend_Rest_Controller
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// REST uploads are not from Zend_Form, hence we handle them using Zend_File_transfer directly
|
// REST uploads are not from Zend_Form, hence we handle them using Zend_File_transfer directly
|
||||||
$upload = new Zend_File_Transfer();
|
// we need to specify an explicit adapter since autodetection broke in php 7.2
|
||||||
|
$upload = new Zend_File_Transfer('Zend_File_Transfer_Adapter_Http');
|
||||||
// this error should not really get hit, letting the user know if it does is nice for debugging
|
// this error should not really get hit, letting the user know if it does is nice for debugging
|
||||||
// see: https://github.com/LibreTime/libretime/issues/3#issuecomment-281143417
|
// see: https://github.com/LibreTime/libretime/issues/3#issuecomment-281143417
|
||||||
if (!$upload->isValid('file')) {
|
if (!$upload->isValid('file')) {
|
||||||
|
|
|
@ -38,8 +38,8 @@ define('AIRTIME_CONFIG', 'airtime.conf');
|
||||||
//Rest Module Controllers - for custom Rest_RouteController.php
|
//Rest Module Controllers - for custom Rest_RouteController.php
|
||||||
set_include_path(REST_MODULE_CONTROLLER_PATH . PATH_SEPARATOR . get_include_path());
|
set_include_path(REST_MODULE_CONTROLLER_PATH . PATH_SEPARATOR . get_include_path());
|
||||||
|
|
||||||
//Vendors (Composer)
|
// Vendors (Composer, zend-loader is explicitly specified due to https://github.com/zf1/zend-application/pull/2#issuecomment-102599655)
|
||||||
set_include_path(VENDOR_PATH . PATH_SEPARATOR . get_include_path());
|
set_include_path(VENDOR_PATH . PATH_SEPARATOR . VENDOR_PATH . 'zf1s/zend-loader/library/' . PATH_SEPARATOR . get_include_path());
|
||||||
|
|
||||||
// Ensure library/ is on include_path
|
// Ensure library/ is on include_path
|
||||||
set_include_path(LIB_PATH . PATH_SEPARATOR . get_include_path());
|
set_include_path(LIB_PATH . PATH_SEPARATOR . get_include_path());
|
||||||
|
|
|
@ -127,7 +127,7 @@ class DatabaseSetup extends Setup {
|
||||||
*/
|
*/
|
||||||
private function createDatabase() {
|
private function createDatabase() {
|
||||||
$statement = self::$dbh->prepare("CREATE DATABASE " . pg_escape_string(self::$_properties["dbname"])
|
$statement = self::$dbh->prepare("CREATE DATABASE " . pg_escape_string(self::$_properties["dbname"])
|
||||||
. " WITH ENCODING 'UTF8' TEMPLATE template0"
|
. " WITH ENCODING 'UNICODE' TEMPLATE template0"
|
||||||
. " OWNER " . pg_escape_string(self::$_properties["dbuser"]));
|
. " OWNER " . pg_escape_string(self::$_properties["dbuser"]));
|
||||||
if (!$statement->execute()) {
|
if (!$statement->execute()) {
|
||||||
throw new AirtimeDatabaseException("There was an error creating the database!",
|
throw new AirtimeDatabaseException("There was an error creating the database!",
|
||||||
|
|
|
@ -30,7 +30,8 @@ set_include_path(implode(PATH_SEPARATOR, array(
|
||||||
// Ensure vendor/ is on the include path
|
// Ensure vendor/ is on the include path
|
||||||
set_include_path(implode(PATH_SEPARATOR, array(
|
set_include_path(implode(PATH_SEPARATOR, array(
|
||||||
get_include_path(),
|
get_include_path(),
|
||||||
realpath(APPLICATION_PATH . '/../../vendor')
|
realpath(APPLICATION_PATH . '/../../vendor'),
|
||||||
|
realpath(APPLICATION_PATH . '/../../vendor/zf1s/zend-loader/library')
|
||||||
)));
|
)));
|
||||||
|
|
||||||
set_include_path(implode(PATH_SEPARATOR, array(
|
set_include_path(implode(PATH_SEPARATOR, array(
|
||||||
|
|
|
@ -12,12 +12,33 @@
|
||||||
"ise/php-soundcloud": "3.0.1",
|
"ise/php-soundcloud": "3.0.1",
|
||||||
"massivescale/celery-php": "2.0.*@dev",
|
"massivescale/celery-php": "2.0.*@dev",
|
||||||
"simplepie/simplepie": "dev-master",
|
"simplepie/simplepie": "dev-master",
|
||||||
"zendframework/zendframework1": "^1.12",
|
"zf1s/zend-application": "^1.12",
|
||||||
"composer/semver": "^1.4",
|
"composer/semver": "^1.4",
|
||||||
"php-amqplib/php-amqplib": "^2.6"
|
"php-amqplib/php-amqplib": "^2.6",
|
||||||
|
"zf1s/zend-acl": "^1.12",
|
||||||
|
"zf1s/zend-session": "^1.12",
|
||||||
|
"zf1s/zend-navigation": "^1.12",
|
||||||
|
"zf1s/zend-controller": "^1.12",
|
||||||
|
"zf1s/zend-log": "^1.12",
|
||||||
|
"zf1s/zend-version": "^1.12",
|
||||||
|
"zf1s/zend-rest": "dev-master@dev",
|
||||||
|
"zf1s/zend-layout": "^1.12",
|
||||||
|
"zf1s/zend-loader": "dev-master@dev",
|
||||||
|
"zf1s/zend-auth": "^1.12",
|
||||||
|
"zf1s/zend-filter": "^1.12",
|
||||||
|
"zf1s/zend-json": "^1.12",
|
||||||
|
"zf1s/zend-form": "^1.12",
|
||||||
|
"zf1s/zend-db": "^1.12",
|
||||||
|
"zf1s/zend-file": "^1.12",
|
||||||
|
"zf1s/zend-file-transfer": "^1.12",
|
||||||
|
"zf1s/zend-http": "^1.12",
|
||||||
|
"zf1s/zend-date": "^1.12",
|
||||||
|
"zf1s/zend-validate": "dev-master@dev",
|
||||||
|
"zf1s/zend-cache": "dev-master@dev"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.3",
|
"phpunit/phpunit": "^4.3",
|
||||||
"phpunit/dbunit": "^2.0"
|
"phpunit/dbunit": "^2.0",
|
||||||
|
"zf1s/zend-test": "^1.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue