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:
authorThomas Steur <thomas.steur@gmail.com>2015-11-12 23:20:14 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-11-12 23:57:49 +0300
commitb4957269a0238065bdb83c9592121fcfb1a655bd (patch)
tree7476c0850218913adb9f80c3182ef1f7992e28a3 /core/Plugin/RequestProcessors.php
parentb1fb146756f255339044784217c6b539eecd2985 (diff)
refs #9201 do not use DI for request processors
Diffstat (limited to 'core/Plugin/RequestProcessors.php')
-rw-r--r--core/Plugin/RequestProcessors.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/Plugin/RequestProcessors.php b/core/Plugin/RequestProcessors.php
new file mode 100644
index 0000000000..ef69eb59d5
--- /dev/null
+++ b/core/Plugin/RequestProcessors.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Piwik - free/libre analytics platform
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ */
+namespace Piwik\Plugin;
+
+use Piwik\Container\StaticContainer;
+
+class RequestProcessors
+{
+ public function getRequestProcessors()
+ {
+ $processors = Manager::getInstance()->findMultipleComponents('Tracker', 'Piwik\\Tracker\\RequestProcessor');
+
+ $instances = array();
+ foreach ($processors as $processor) {
+ $instances[] = StaticContainer::get($processor);
+ }
+
+ return $instances;
+ }
+}