Skip to content

[PHP] Make API client more pluggable #778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2015

Conversation

wing328
Copy link
Contributor

@wing328 wing328 commented May 23, 2015

This PR will allow developers to easily customize APIClient and use it to initialize the API class (e.g. PetApi)

It also allows developers to skip the initialization of a new APIClient as the API class (e.g. PetApi) will automatically construct a new default API client if no client has been initialized). For example, the following line becomes optional:

$api_client = new SwaggerClient\APIClient('http://petstore.swagger.io/v2');

fehguy added a commit that referenced this pull request May 23, 2015
[PHP] Make API client more pluggable
@fehguy fehguy merged commit 156afa7 into swagger-api:develop_2.0 May 23, 2015
@wing328 wing328 mentioned this pull request May 30, 2015
fehguy added a commit that referenced this pull request Jun 5, 2015
[Perl] Make API client more pluggable (ref: #778)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants