/** * Client constructor * * @param Repository $config */ public function __construct(Repository $config) { // Get the config data $this->config = $config; // Make the client instance $this->client = new Client($this->config->get('plesk.host')); $this->client->setCredentials($this->config->get('plesk.login'), $this->config->get('plesk.password')); }