ConsoleCommand
1 month ago
Dimension
1 month ago
API.php
6 months ago
AggregatedMetric.php
2 years ago
ArchivedMetric.php
1 year ago
Archiver.php
1 month ago
Categories.php
2 years ago
ComponentFactory.php
3 months ago
ComputedMetric.php
1 year ago
ConsoleCommand.php
1 month ago
Controller.php
1 month ago
ControllerAdmin.php
2 weeks ago
Dependency.php
1 month ago
LogTablesProvider.php
2 years ago
Manager.php
1 month ago
Menu.php
1 month ago
MetadataLoader.php
1 month ago
Metric.php
1 month ago
PluginException.php
1 year ago
ProcessedMetric.php
3 months ago
ReleaseChannels.php
3 months ago
Report.php
1 month ago
ReportsProvider.php
2 years ago
RequestProcessors.php
4 months ago
Segment.php
3 months ago
SettingsProvider.php
1 month ago
Tasks.php
1 month ago
ThemeStyles.php
2 weeks ago
ViewDataTable.php
3 months ago
Visualization.php
1 year ago
WidgetsProvider.php
3 months ago
RequestProcessors.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | namespace Piwik\Plugin; |
| 10 | |
| 11 | use Piwik\Container\StaticContainer; |
| 12 | use Piwik\Tracker\BotRequestProcessor; |
| 13 | use Piwik\Tracker\RequestProcessor; |
| 14 | class RequestProcessors |
| 15 | { |
| 16 | /** |
| 17 | * @return RequestProcessor[] |
| 18 | */ |
| 19 | public function getRequestProcessors() : array |
| 20 | { |
| 21 | $manager = \Piwik\Plugin\Manager::getInstance(); |
| 22 | $processors = $manager->findMultipleComponents('Tracker', 'Piwik\\Tracker\\RequestProcessor'); |
| 23 | $instances = array(); |
| 24 | foreach ($processors as $processor) { |
| 25 | $instances[] = StaticContainer::get($processor); |
| 26 | } |
| 27 | return $instances; |
| 28 | } |
| 29 | /** |
| 30 | * @return BotRequestProcessor[] |
| 31 | */ |
| 32 | public function getBotRequestProcessors() : array |
| 33 | { |
| 34 | $manager = \Piwik\Plugin\Manager::getInstance(); |
| 35 | $processors = $manager->findMultipleComponents('Tracker', 'Piwik\\Tracker\\BotRequestProcessor'); |
| 36 | $instances = []; |
| 37 | foreach ($processors as $processor) { |
| 38 | $instances[] = StaticContainer::get($processor); |
| 39 | } |
| 40 | return $instances; |
| 41 | } |
| 42 | } |
| 43 |