{"action":"created","issue":{"url":"https://api.github.com/repos/wizacha/AwsEsConnection/issues/1","labels_url":"https://api.github.com/repos/wizacha/AwsEsConnection/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/wizacha/AwsEsConnection/issues/1/comments","events_url":"https://api.github.com/repos/wizacha/AwsEsConnection/issues/1/events","html_url":"https://github.com/wizacha/AwsEsConnection/pull/1","id":110651172,"number":1,"title":"Creation","user":{"login":"Guillaume-Rossignol","id":7794372,"avatar_url":"https://avatars.githubusercontent.com/u/7794372?v=3","gravatar_id":"","url":"https://api.github.com/users/Guillaume-Rossignol","html_url":"https://github.com/Guillaume-Rossignol","followers_url":"https://api.github.com/users/Guillaume-Rossignol/followers","following_url":"https://api.github.com/users/Guillaume-Rossignol/following{/other_user}","gists_url":"https://api.github.com/users/Guillaume-Rossignol/gists{/gist_id}","starred_url":"https://api.github.com/users/Guillaume-Rossignol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guillaume-Rossignol/subscriptions","organizations_url":"https://api.github.com/users/Guillaume-Rossignol/orgs","repos_url":"https://api.github.com/users/Guillaume-Rossignol/repos","events_url":"https://api.github.com/users/Guillaume-Rossignol/events{/privacy}","received_events_url":"https://api.github.com/users/Guillaume-Rossignol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-09T12:44:13Z","updated_at":"2015-10-09T13:53:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wizacha/AwsEsConnection/pulls/1","html_url":"https://github.com/wizacha/AwsEsConnection/pull/1","diff_url":"https://github.com/wizacha/AwsEsConnection/pull/1.diff","patch_url":"https://github.com/wizacha/AwsEsConnection/pull/1.patch"},"body":"Youhou, ca marche \\o/"},"comment":{"url":"https://api.github.com/repos/wizacha/AwsEsConnection/issues/comments/146877369","html_url":"https://github.com/wizacha/AwsEsConnection/pull/1#issuecomment-146877369","issue_url":"https://api.github.com/repos/wizacha/AwsEsConnection/issues/1","id":146877369,"user":{"login":"mnapoli","id":720328,"avatar_url":"https://avatars.githubusercontent.com/u/720328?v=3","gravatar_id":"","url":"https://api.github.com/users/mnapoli","html_url":"https://github.com/mnapoli","followers_url":"https://api.github.com/users/mnapoli/followers","following_url":"https://api.github.com/users/mnapoli/following{/other_user}","gists_url":"https://api.github.com/users/mnapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/mnapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnapoli/subscriptions","organizations_url":"https://api.github.com/users/mnapoli/orgs","repos_url":"https://api.github.com/users/mnapoli/repos","events_url":"https://api.github.com/users/mnapoli/events{/privacy}","received_events_url":"https://api.github.com/users/mnapoli/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T13:53:35Z","updated_at":"2015-10-09T13:53:35Z","body":"Yep mais vu que le handler est un callable, ça pourrait être un truc genre:\r\n\r\n```php\r\nclass Foo\r\n{\r\n    private $decoratedHandler;\r\n\r\n    public function __construct(callable $handler)\r\n    {\r\n        $this->decoratedHandler = $handler;\r\n    }\r\n\r\n    public function __invoke(...$params)\r\n    {\r\n        // Add AWS headers here\r\n\r\n        $decoratedHandler = $this->decoratedHandler\r\n        $decoratedHandler(...$params);\r\n    }\r\n}\r\n```\r\n\r\nComme ça on a moins de risque d'être impacté si Elasticsearch change qqch dans son client (vu qu'on étend pas une de leur classes) ? En gros on est plus découplé"}}