Define the ICINGAWEB_VENDORS contant

This commit is contained in:
Eric Lippmann 2014-11-12 13:17:18 +01:00
parent 921f324d3e
commit 11e13582e2
1 changed files with 6 additions and 4 deletions

View File

@ -103,15 +103,17 @@ abstract class ApplicationBootstrap
{
$this->libDir = realpath(__DIR__ . '/../..');
if (! defined('ICINGAWEB_BASEDIR')) {
throw new LogicException('\'ICINGAWEB_BASEDIR\' is not defined');
}
define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor');
if (defined('ICINGAWEB_APPDIR')) {
$this->appDir = ICINGAWEB_APPDIR;
} else {
if (array_key_exists('ICINGAWEB_APPDIR', $_SERVER)) {
$this->appDIr = $_SERVER['ICINGAWEB_APPDIR'];
$this->appDir = $_SERVER['ICINGAWEB_APPDIR'];
} else {
if (! defined('ICINGAWEB_BASEDIR')) {
throw new LogicException('\'ICINGAWEB_BASEDIR\' is not defined');
}
$this->appDir = ICINGAWEB_BASEDIR . '/application';
}
define('ICINGAWEB_APPDIR', $this->appDir);