diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-07-13 00:56:42 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-07-13 00:56:42 +0300 |
commit | 47cf78277659048d55061b1914f940ffe56067f4 (patch) | |
tree | c33c40548e4ccbfbf53d8add9fbb1aca1da7c746 /misc/others | |
parent | c1e4dfb1a2c018651345f59f8dcc1f4aaaf7f30f (diff) |
Fixes #8311 Init the DI container
Diffstat (limited to 'misc/others')
-rw-r--r-- | misc/others/api_internal_call.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/others/api_internal_call.php b/misc/others/api_internal_call.php index 4cc0052911..b4b1cba48c 100644 --- a/misc/others/api_internal_call.php +++ b/misc/others/api_internal_call.php @@ -13,6 +13,10 @@ define('PIWIK_ENABLE_SESSION_START', false); require_once PIWIK_INCLUDE_PATH . "/index.php"; require_once PIWIK_INCLUDE_PATH . "/core/API/Request.php"; + +$environment = new \Piwik\Application\Environment(null); +$environment->init(); + FrontController::getInstance()->init(); // This inits the API Request with the specified parameters |