{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1045","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1045/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1045/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1045/events","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1045","id":99148565,"number":1045,"title":"[PHP] APIClient connectors","user":{"login":"harnash","id":783242,"avatar_url":"https://avatars.githubusercontent.com/u/783242?v=3","gravatar_id":"","url":"https://api.github.com/users/harnash","html_url":"https://github.com/harnash","followers_url":"https://api.github.com/users/harnash/followers","following_url":"https://api.github.com/users/harnash/following{/other_user}","gists_url":"https://api.github.com/users/harnash/gists{/gist_id}","starred_url":"https://api.github.com/users/harnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harnash/subscriptions","organizations_url":"https://api.github.com/users/harnash/orgs","repos_url":"https://api.github.com/users/harnash/repos","events_url":"https://api.github.com/users/harnash/events{/privacy}","received_events_url":"https://api.github.com/users/harnash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T08:13:32Z","updated_at":"2015-08-05T14:21:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/pulls/1045","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1045","diff_url":"https://github.com/swagger-api/swagger-codegen/pull/1045.diff","patch_url":"https://github.com/swagger-api/swagger-codegen/pull/1045.patch"},"body":"This change introduces `APIConnectors` which are used by `APIClients`\r\nto send requests to API servers. \r\n`APICurlClient` facilitates current cURL\r\nfunctionality and separates connection specific logic into separate\r\nclass to allow different *backends* such as Guzzle or adding some\r\nplatform specific logic for all or some API's/resources. `APIConnector` responsibility is to make requests to an given server, process response and decode it if needed.\r\n\r\nSamples regenerated with `mvn clean && ./bin/php-petstore.sh`\r\n\r\nTests:\r\n```\r\n./vendor/bin/phpunit tests\r\n\r\n\r\n\r\n\r\nPHPUnit 4.7.7 by Sebastian Bergmann and contributors.\r\n\r\n............\r\n\r\nTime: 6.37 seconds, Memory: 5.75Mb\r\n\r\nOK (12 tests, 277 assertions)\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/128013218","html_url":"https://github.com/swagger-api/swagger-codegen/pull/1045#issuecomment-128013218","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1045","id":128013218,"user":{"login":"wing328","id":934260,"avatar_url":"https://avatars.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T14:21:08Z","updated_at":"2015-08-05T14:21:08Z","body":"@harnash thanks for the PR. If the goal is to generate PHP SDKs with customised HTTP library (e.g. cURL,  Guzzle), shall we create a separate ApiClient.mustache for each HTTP library and use the CLI option `-c` to determine which one to use?"}}