Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-04-20 07:51:18 +0300
committerdiosmosis <benaka@piwik.pro>2015-04-20 07:51:18 +0300
commit11fc6054b5fbbb96ca72feaf45d03bbe610157db (patch)
treeae4815ea335a7a09654c6ddc43058ffc216811ff /piwik.php
parentb347a3bf53849bf01a2416e824db1b19af2c5e9d (diff)
Allow plugins to have environment DI config files. Move all logging DI to Monolog plugin and only use logging in tracker if [Tracker] debug = 1.
Diffstat (limited to 'piwik.php')
-rw-r--r--piwik.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/piwik.php b/piwik.php
index 95cc6271f1..dcca10e408 100644
--- a/piwik.php
+++ b/piwik.php
@@ -48,6 +48,10 @@ require_once PIWIK_INCLUDE_PATH . '/core/Tracker/Cache.php';
require_once PIWIK_INCLUDE_PATH . '/core/Tracker/Request.php';
require_once PIWIK_INCLUDE_PATH . '/core/Cookie.php';
+\Piwik\Container\StaticContainer::setEnvironment('tracker');
+
+\Piwik\Profiler::setupProfilerXHProf(true, true);
+
Tracker::loadTrackerEnvironment();
$tracker = new Tracker();