diff options
author | diosmosis <benaka@piwik.pro> | 2015-04-20 07:51:18 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-04-20 07:51:18 +0300 |
commit | 11fc6054b5fbbb96ca72feaf45d03bbe610157db (patch) | |
tree | ae4815ea335a7a09654c6ddc43058ffc216811ff /piwik.php | |
parent | b347a3bf53849bf01a2416e824db1b19af2c5e9d (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.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(); |