params = $params; $this->httpClient = $httpClient; $this->requestStack = $requestStack; $this->respondService = $respondService; $this->token = $this->requestStack->getCurrentRequest()->headers->get('x-auth-token'); } public function list() { if ($this->params->get($this->enabled)) { $response = $this->httpClient->data( 'GET', $this->params->get($this->domain) . '/sidebar_tag.json', [ 'headers' => [ 'x-auth-token' => $this->token, ], ] ); return $this->respondService->checkProviderResponse($response); } else { throw new UnprocessableEntityMaestroException($this->module, $this->keyModule, $this->methodModule); } } }