From 11fc6054b5fbbb96ca72feaf45d03bbe610157db Mon Sep 17 00:00:00 2001 From: diosmosis Date: Sun, 19 Apr 2015 21:51:18 -0700 Subject: 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. --- piwik.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'piwik.php') 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(); -- cgit v1.2.3