diff options
author | diosmosis <benaka@piwik.pro> | 2015-04-09 09:10:44 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-04-09 09:10:44 +0300 |
commit | e24d32aeec48697c5ff0d21e4c2824105a27e919 (patch) | |
tree | 8512860cfab4e3ebe7fa82350bcff2126eab0ec4 /misc/others | |
parent | 9712e3b2d4e3f9ec32ccf51e24d523c53939e303 (diff) |
Remove cli-script-bootstrap.php, no longer used.
Diffstat (limited to 'misc/others')
-rw-r--r-- | misc/others/cli-script-bootstrap.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/misc/others/cli-script-bootstrap.php b/misc/others/cli-script-bootstrap.php deleted file mode 100644 index b7d24f4958..0000000000 --- a/misc/others/cli-script-bootstrap.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Piwik - free/libre analytics platform - * - * @link http://piwik.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - -use Piwik\Container\StaticContainer; -use Piwik\FrontController; -use Symfony\Bridge\Monolog\Handler\ConsoleHandler; -use Symfony\Component\Console\Output\ConsoleOutput; - -define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__) . '/../..'); -if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) { - require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php'; -} -if (!defined('PIWIK_INCLUDE_PATH')) { - define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT); -} - -require_once PIWIK_INCLUDE_PATH . '/core/bootstrap.php'; - -ignore_user_abort(true); -set_time_limit(0); - -$GLOBALS['PIWIK_TRACKER_DEBUG'] = false; -define('PIWIK_ENABLE_DISPATCH', false); - -if (Piwik\Common::isPhpCliMode()) { - $environment = new \Piwik\Application\Environment('cli'); // TODO: what is this script for? need to test it if it's still needed. - $environment->init(); - - /** @var ConsoleHandler $consoleLogHandler */ - $consoleLogHandler = StaticContainer::get('Symfony\Bridge\Monolog\Handler\ConsoleHandler'); - $consoleLogHandler->setOutput(new ConsoleOutput()); -} - -FrontController::getInstance()->init(); |