diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-04 03:48:05 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-04 03:48:05 +0400 |
commit | 69220141bc712e6ed57349d1951eeadcae841823 (patch) | |
tree | 2ab28d15cbed7de8f78f688763b38b1922a19dfc /console | |
parent | a70335529e65976a6dffe466bada632f34b0de45 (diff) |
refs #4121 added simple command line tool including a not yet working tests and generatePlugin command
Diffstat (limited to 'console')
-rwxr-xr-x | console | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/console b/console new file mode 100755 index 0000000000..fd2581091f --- /dev/null +++ b/console @@ -0,0 +1,11 @@ +#!/usr/bin/env php +<?php +define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__)); +define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT); +define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT); + +require_once PIWIK_INCLUDE_PATH . '/vendor/autoload.php'; +require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; + +$console = new Piwik\Console(); +$console->run();
\ No newline at end of file |