Skip to content

Commit dd7a935

Browse files
authored
Merge pull request #649 from jacobtruman/master
Correct Enterprise API documentation (issue #636)
2 parents 081e9ad + 4330780 commit dd7a935

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/enterprise.md

Lines changed: 2 additions & 4 deletions
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)