allow Airtime environment to be accessed from CLI

This commit is contained in:
Martin Konecny 2012-09-05 17:29:34 -04:00
parent 91c74d8995
commit 7cbfb5d40d
1 changed files with 10 additions and 2 deletions

View File

@ -39,5 +39,13 @@ $application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
if (substr($sapi_type, 0, 3) == 'cli') {
set_include_path(APPLICATION_PATH . PATH_SEPARATOR . get_include_path());
require_once("Bootstrap.php");
} else {
$application->bootstrap()
->run();
}