public function __construct($request_options) { $description = ServiceDescription::factory(__DIR__ . "/../../clients/index.json"); $this->client = new Client($request_options['base_url']); $this->client->setDescription($description); $this->client->setConfig($request_options); $tokenPlugin = new \Gitlab\Auth\Token\Plugin($this, $request_options); $urlEncoder = new \Gitlab\Core\Plugin\UrlEncoder(); $this->client->addSubscriber($tokenPlugin); $this->client->addSubscriber($urlEncoder); }