Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions doc/enterprise.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down