packaging/config: rename ICINGA_APPDIR

Renamed ICINGA_APPDIR to ICINGAWEB_APPDIR for consistency. This way
it fits ICINGAWEB_CONFIGDIR.

refs #6400
This commit is contained in:
Thomas Gelf 2014-06-04 21:11:27 +00:00
parent e992f152bb
commit 55880cb5a3
5 changed files with 9 additions and 9 deletions

View File

@ -29,7 +29,7 @@ class WebCommand extends Command
// throw new Exception('Socket is required');
}
if ($basedir === null) {
$basedir = dirname(ICINGA_APPDIR) . '/public';
$basedir = dirname(ICINGAWEB_APPDIR) . '/public';
if (! file_exists($basedir) || ! is_dir($basedir)) {
throw new Exception('Basedir is required');
}

View File

@ -248,7 +248,7 @@ class GeneralForm extends Form
'helptext' => 'Contains the directories that will be searched for available modules, separated by ' .
' colons. Modules that don\'t exist in these directories can still be symlinked in the module ' .
' folder, but won\'t show up in the list of disabled modules.',
'value' => $cfg->get('modulePath', realpath(ICINGA_APPDIR . '/../modules'))
'value' => $cfg->get('modulePath', realpath(ICINGAWEB_APPDIR . '/../modules'))
)
);
}

View File

@ -136,8 +136,8 @@ abstract class ApplicationBootstrap
// TODO: Make appdir configurable for packagers
$this->appDir = realpath($this->libDir. '/../application');
if (!defined('ICINGA_APPDIR')) {
define('ICINGA_APPDIR', $this->appDir);
if (!defined('ICINGAWEB_APPDIR')) {
define('ICINGAWEB_APPDIR', $this->appDir);
}
if ($configDir === null) {
@ -337,8 +337,8 @@ abstract class ApplicationBootstrap
explode(
':',
$this->config->global !== null
? $this->config->global->get('modulePath', ICINGA_APPDIR . '/../modules')
: ICINGA_APPDIR . '/../modules'
? $this->config->global->get('modulePath', ICINGAWEB_APPDIR . '/../modules')
: ICINGAWEB_APPDIR . '/../modules'
)
);
return $this;

View File

@ -64,7 +64,7 @@ class Loader
public function __construct(App $app)
{
$this->app = $app;
$this->coreAppDir = ICINGA_APPDIR . '/clicommands';
$this->coreAppDir = ICINGAWEB_APPDIR . '/clicommands';
}
/**

View File

@ -7,8 +7,8 @@ $testLibraryPath = realpath(dirname(__FILE__) . '/library/');
$configPath = realpath($libraryPath . '/../config');
// Is usually done in the application's bootstrap and is used by some of our internals
if (!defined('ICINGA_APPDIR')) {
define('ICINGA_APPDIR', $applicationPath);
if (!defined('ICINGAWEB_APPDIR')) {
define('ICINGAWEB_APPDIR', $applicationPath);
}
if (!defined('ICINGA_LIBDIR')) {
define('ICINGA_LIBDIR', $libraryPath);