Skip to content

Client setEnterpriseUrl method is private #636

Closed

Description

@jacobtruman

The documentation for using the Enterprise API (https://github.com/KnpLabs/php-github-api/blob/master/doc/enterprise.md) says you can set the enterprise URL like this:

$client->setEnterpriseUrl('https://ghe.host');

This fails because the method is private:

https://github.com/KnpLabs/php-github-api/blob/master/lib/Github/Client.php#L331

Activity

  1. acrobat commented on Nov 9, 2017

    @acrobat
    Collaborator

    This is indeed an issue with the docs as the enterprise url should be passed to the client constructor

    So if you can please open a PR to fix the specific docs. Thanks!

  2. added a commit that references this issue on Nov 15, 2017
  3. acrobat commented on Dec 12, 2017

    @acrobat
    Collaborator

    Fixed in #649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions