Skip to content
Snippets Groups Projects
Commit a448a5e1 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

re #53

parent 39310139
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,10 @@ final class DashboardController extends TracToGitlab\GitlabController
public function index_action()
{
$this->issues = $this->cached('issues', fn() => $this->getIssues());
$this->issues = $this->cached(
implode('-', ['issues', $this->getSelected('milestone'), $this->getSelected('types')]),
fn() => $this->getIssues()
);
$this->mapping = $this->getQMLabelMapping();
$this->filters = $this->getSelected('filters');
......
......@@ -3,11 +3,12 @@ namespace TracToGitlab;
use Config;
use Gitlab;
use GuzzleHttp\Client as GuzzleClient;
use Http\Factory\Guzzle\RequestFactory;
use Http\Factory\Guzzle\StreamFactory;
use Http\Factory\Guzzle\UriFactory;
use Parsedown;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Client\ClientInterface as HttpClientInterface;
use Studip\DIContainer;
use StudIPPlugin;
......@@ -19,10 +20,10 @@ abstract class Plugin extends StudIPPlugin
$container->set(BytistConnector::class, function () {
return new BytistConnector(Config::get()->getValue('TRAC2GITLAB_BYTIST_TOKEN'));
});
$container->set(ClientInterface::class, function () {
return new \GuzzleHttp\Client();
$container->set(HttpClientInterface::class, function () {
return new GuzzleClient();
});
$container->set(Gitlab\Client::class, function (ClientInterface $client) {
$container->set(Gitlab\Client::class, function (HttpClientInterface $client) {
$builder = new Gitlab\HttpClient\Builder(
$client,
new RequestFactory(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment