Skip to content

Commit 4330780

Browse files
author
Jacob Truman
committed
Correct Enterprise API documentation (issue KnpLabs#636)
1 parent 081e9ad commit 4330780

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/enterprise.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ In order to configure the client to point to a GitHub Enterprise installation, d
1212
// This file is generated by Composer
1313
require_once 'vendor/autoload.php';
1414

15-
$client = new \Github\Client();
16-
17-
// Set the URL of your GitHub Enterprise installation
18-
$client->setEnterpriseUrl('https://ghe.host');
15+
// Specify the URL of your GitHub Enterprise installation on client initialization
16+
$client = new \Github\Client(null, null, 'https://ghe.host');
1917

2018
// Use the client as you would ordinarily
2119
$repositories = $client->api('user')->repositories('ornicar');

0 commit comments

Comments
 (0)