From 43307801d9db1f616ba737d41ded1eb178aed547 Mon Sep 17 00:00:00 2001 From: Jacob Truman Date: Wed, 15 Nov 2017 09:17:22 -0700 Subject: [PATCH] Correct Enterprise API documentation (issue #636) --- doc/enterprise.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/enterprise.md b/doc/enterprise.md index 7308d2dc1f2..5245fe7c3d8 100644 --- a/doc/enterprise.md +++ b/doc/enterprise.md @@ -12,10 +12,8 @@ In order to configure the client to point to a GitHub Enterprise installation, d // This file is generated by Composer require_once 'vendor/autoload.php'; -$client = new \Github\Client(); - -// Set the URL of your GitHub Enterprise installation -$client->setEnterpriseUrl('https://ghe.host'); +// Specify the URL of your GitHub Enterprise installation on client initialization +$client = new \Github\Client(null, null, 'https://ghe.host'); // Use the client as you would ordinarily $repositories = $client->api('user')->repositories('ornicar');