1<?php
2
3namespace Icinga\Module\Graphite\Controllers;
4
5use GuzzleHttp\Psr7\ServerRequest;
6use Icinga\Module\Graphite\Util\InternalProcessTracker as IPT;
7use Icinga\Module\Graphite\Web\Controller\IcingadbGraphiteController;
8use Icinga\Module\Graphite\Web\Controller\TimeRangePickerTrait;
9use Icinga\Module\Graphite\Web\Widget\IcingadbGraphs;
10use Icinga\Module\Icingadb\Model\Service;
11use Icinga\Module\Icingadb\Web\Control\SearchBar\ObjectSuggestions;
12use Icinga\Web\Url;
…lines 13–23 unchanged (11 lines)
24 if (! $this->useIcingadbAsBackend) {
25 $params = urldecode($this->params->get('legacyParams'));
26 $this->redirectNow(Url::fromPath('graphite/list/services')->setQueryString($params));
27 }
28
29 // shift graph params to avoid exception
30 $graphDebug = $this->params->shift('graph_debug');
31 $graphRange = $this->params->shift('graph_range');
32
33 if ($graphDebug) {
34 IPT::enable();
35 }
36
37 $baseFilter = $graphRange ? Filter::equal('graph_range', $graphRange) : null;
38 foreach ($this->preservedParams as $param) {
39 $this->params->shift($param);
40 }
41
…lines 42–123 unchanged (82 lines)