From 921f324d3e10cbcbe9ca661b6cc53f1de2e4e3f2 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 12 Nov 2014 13:13:39 +0100 Subject: [PATCH] Prepare icingacli for having the Icinga library in PHP's include path --- bin/icingacli | 17 ++++++++++++++--- public/index.php | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/bin/icingacli b/bin/icingacli index 1a0781222b..5bd5086d21 100755 --- a/bin/icingacli +++ b/bin/icingacli @@ -1,6 +1,17 @@ #!/usr/bin/php + dispatch(); +Icinga\Application\Cli::start()->dispatch(); diff --git a/public/index.php b/public/index.php index 92cd0a499e..881c1318e4 100644 --- a/public/index.php +++ b/public/index.php @@ -3,7 +3,7 @@ // {{{ICINGA_LICENSE_HEADER}}} define('ICINGAWEB_BASEDIR', dirname(__DIR__)); -// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules and public +// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules, library/vendor and public if (! @include_once ICINGAWEB_BASEDIR . '/library/Icinga/Application/webrouter.php') {