{"action":"created","comment":{"url":"https://api.github.com/repos/slimphp/Slim/pulls/comments/34248674","id":34248674,"diff_hunk":"@@ -0,0 +1,27 @@\n+<?php\n+/**\n+ * Slim Framework (http://slimframework.com)\n+ *\n+ * @link      https://github.com/codeguy/Slim\n+ * @copyright Copyright (c) 2011-2015 Josh Lockhart\n+ * @license   https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License)\n+ */\n+namespace Slim\\Interfaces;\n+\n+\n+use Interop\\Container\\ContainerInterface;\n+use Psr\\Http\\Message\\ResponseInterface;\n+use Psr\\Http\\Message\\ServerRequestInterface;\n+\n+interface InvocationStrategyInterface\n+{\n+    /**\n+     * @param ContainerInterface     $container\n+     * @param array                  $route\n+     * @param ServerRequestInterface $request\n+     * @param ResponseInterface      $response\n+     *\n+     * @return mixed\n+     */\n+    public function invoke(ContainerInterface $container, array $route, ServerRequestInterface $request, ResponseInterface $response);","path":"Slim/Interfaces/InvocationStrategyInterface.php","position":26,"original_position":26,"commit_id":"ae77a9afe7d0c50b723972f3c9bbe54eb1a6210d","original_commit_id":"ae77a9afe7d0c50b723972f3c9bbe54eb1a6210d","user":{"login":"JoeBengalen","id":11173689,"avatar_url":"https://avatars.githubusercontent.com/u/11173689?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeBengalen","html_url":"https://github.com/JoeBengalen","followers_url":"https://api.github.com/users/JoeBengalen/followers","following_url":"https://api.github.com/users/JoeBengalen/following{/other_user}","gists_url":"https://api.github.com/users/JoeBengalen/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeBengalen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeBengalen/subscriptions","organizations_url":"https://api.github.com/users/JoeBengalen/orgs","repos_url":"https://api.github.com/users/JoeBengalen/repos","events_url":"https://api.github.com/users/JoeBengalen/events{/privacy}","received_events_url":"https://api.github.com/users/JoeBengalen/received_events","type":"User","site_admin":false},"body":"Why not the magic `__invoke()` method? This custom `invoke()` might be confusing.","created_at":"2015-07-09T12:17:43Z","updated_at":"2015-07-09T12:17:43Z","html_url":"https://github.com/slimphp/Slim/pull/1345#discussion_r34248674","pull_request_url":"https://api.github.com/repos/slimphp/Slim/pulls/1345","_links":{"self":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/comments/34248674"},"html":{"href":"https://github.com/slimphp/Slim/pull/1345#discussion_r34248674"},"pull_request":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1345"}}},"pull_request":{"url":"https://api.github.com/repos/slimphp/Slim/pulls/1345","id":39573349,"html_url":"https://github.com/slimphp/Slim/pull/1345","diff_url":"https://github.com/slimphp/Slim/pull/1345.diff","patch_url":"https://github.com/slimphp/Slim/pull/1345.patch","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/1345","number":1345,"state":"closed","locked":false,"title":"Add foundHandler that implements a new InvocationStrategyInterface","user":{"login":"opengeek","id":232812,"avatar_url":"https://avatars.githubusercontent.com/u/232812?v=3","gravatar_id":"","url":"https://api.github.com/users/opengeek","html_url":"https://github.com/opengeek","followers_url":"https://api.github.com/users/opengeek/followers","following_url":"https://api.github.com/users/opengeek/following{/other_user}","gists_url":"https://api.github.com/users/opengeek/gists{/gist_id}","starred_url":"https://api.github.com/users/opengeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opengeek/subscriptions","organizations_url":"https://api.github.com/users/opengeek/orgs","repos_url":"https://api.github.com/users/opengeek/repos","events_url":"https://api.github.com/users/opengeek/events{/privacy}","received_events_url":"https://api.github.com/users/opengeek/received_events","type":"User","site_admin":false},"body":"This will allow a foundHandler in the container to describe what parameters are injected into the callable defined for a found route.","created_at":"2015-07-09T11:33:29Z","updated_at":"2015-07-09T12:17:43Z","closed_at":"2015-07-09T12:01:01Z","merged_at":"2015-07-09T12:01:01Z","merge_commit_sha":"a8b78e721e02ea2f47e0127561d8273f24dee3db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/slimphp/Slim/pulls/1345/commits","review_comments_url":"https://api.github.com/repos/slimphp/Slim/pulls/1345/comments","review_comment_url":"https://api.github.com/repos/slimphp/Slim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1345/comments","statuses_url":"https://api.github.com/repos/slimphp/Slim/statuses/ae77a9afe7d0c50b723972f3c9bbe54eb1a6210d","head":{"label":"opengeek:foundHandler","ref":"foundHandler","sha":"ae77a9afe7d0c50b723972f3c9bbe54eb1a6210d","user":{"login":"opengeek","id":232812,"avatar_url":"https://avatars.githubusercontent.com/u/232812?v=3","gravatar_id":"","url":"https://api.github.com/users/opengeek","html_url":"https://github.com/opengeek","followers_url":"https://api.github.com/users/opengeek/followers","following_url":"https://api.github.com/users/opengeek/following{/other_user}","gists_url":"https://api.github.com/users/opengeek/gists{/gist_id}","starred_url":"https://api.github.com/users/opengeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opengeek/subscriptions","organizations_url":"https://api.github.com/users/opengeek/orgs","repos_url":"https://api.github.com/users/opengeek/repos","events_url":"https://api.github.com/users/opengeek/events{/privacy}","received_events_url":"https://api.github.com/users/opengeek/received_events","type":"User","site_admin":false},"repo":{"id":30900534,"name":"Slim","full_name":"opengeek/Slim","owner":{"login":"opengeek","id":232812,"avatar_url":"https://avatars.githubusercontent.com/u/232812?v=3","gravatar_id":"","url":"https://api.github.com/users/opengeek","html_url":"https://github.com/opengeek","followers_url":"https://api.github.com/users/opengeek/followers","following_url":"https://api.github.com/users/opengeek/following{/other_user}","gists_url":"https://api.github.com/users/opengeek/gists{/gist_id}","starred_url":"https://api.github.com/users/opengeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opengeek/subscriptions","organizations_url":"https://api.github.com/users/opengeek/orgs","repos_url":"https://api.github.com/users/opengeek/repos","events_url":"https://api.github.com/users/opengeek/events{/privacy}","received_events_url":"https://api.github.com/users/opengeek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/opengeek/Slim","description":"A PHP micro framework","fork":true,"url":"https://api.github.com/repos/opengeek/Slim","forks_url":"https://api.github.com/repos/opengeek/Slim/forks","keys_url":"https://api.github.com/repos/opengeek/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opengeek/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opengeek/Slim/teams","hooks_url":"https://api.github.com/repos/opengeek/Slim/hooks","issue_events_url":"https://api.github.com/repos/opengeek/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/opengeek/Slim/events","assignees_url":"https://api.github.com/repos/opengeek/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/opengeek/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/opengeek/Slim/tags","blobs_url":"https://api.github.com/repos/opengeek/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opengeek/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opengeek/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/opengeek/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opengeek/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/opengeek/Slim/languages","stargazers_url":"https://api.github.com/repos/opengeek/Slim/stargazers","contributors_url":"https://api.github.com/repos/opengeek/Slim/contributors","subscribers_url":"https://api.github.com/repos/opengeek/Slim/subscribers","subscription_url":"https://api.github.com/repos/opengeek/Slim/subscription","commits_url":"https://api.github.com/repos/opengeek/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/opengeek/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/opengeek/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/opengeek/Slim/issues/comments{/number}","contents_url":"https://api.github.com/repos/opengeek/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/opengeek/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opengeek/Slim/merges","archive_url":"https://api.github.com/repos/opengeek/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opengeek/Slim/downloads","issues_url":"https://api.github.com/repos/opengeek/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/opengeek/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/opengeek/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/opengeek/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opengeek/Slim/labels{/name}","releases_url":"https://api.github.com/repos/opengeek/Slim/releases{/id}","created_at":"2015-02-17T03:13:27Z","updated_at":"2015-03-19T13:56:26Z","pushed_at":"2015-07-09T11:32:45Z","git_url":"git://github.com/opengeek/Slim.git","ssh_url":"git@github.com:opengeek/Slim.git","clone_url":"https://github.com/opengeek/Slim.git","svn_url":"https://github.com/opengeek/Slim","homepage":"http://www.slimframework.com","size":4530,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"3.x"}},"base":{"label":"slimphp:3.x","ref":"3.x","sha":"2b6229da3b4bf1f109441b9450c8313f40e54a66","user":{"login":"slimphp","id":11195762,"avatar_url":"https://avatars.githubusercontent.com/u/11195762?v=3","gravatar_id":"","url":"https://api.github.com/users/slimphp","html_url":"https://github.com/slimphp","followers_url":"https://api.github.com/users/slimphp/followers","following_url":"https://api.github.com/users/slimphp/following{/other_user}","gists_url":"https://api.github.com/users/slimphp/gists{/gist_id}","starred_url":"https://api.github.com/users/slimphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimphp/subscriptions","organizations_url":"https://api.github.com/users/slimphp/orgs","repos_url":"https://api.github.com/users/slimphp/repos","events_url":"https://api.github.com/users/slimphp/events{/privacy}","received_events_url":"https://api.github.com/users/slimphp/received_events","type":"Organization","site_admin":false},"repo":{"id":926544,"name":"Slim","full_name":"slimphp/Slim","owner":{"login":"slimphp","id":11195762,"avatar_url":"https://avatars.githubusercontent.com/u/11195762?v=3","gravatar_id":"","url":"https://api.github.com/users/slimphp","html_url":"https://github.com/slimphp","followers_url":"https://api.github.com/users/slimphp/followers","following_url":"https://api.github.com/users/slimphp/following{/other_user}","gists_url":"https://api.github.com/users/slimphp/gists{/gist_id}","starred_url":"https://api.github.com/users/slimphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimphp/subscriptions","organizations_url":"https://api.github.com/users/slimphp/orgs","repos_url":"https://api.github.com/users/slimphp/repos","events_url":"https://api.github.com/users/slimphp/events{/privacy}","received_events_url":"https://api.github.com/users/slimphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slimphp/Slim","description":"Slim Framework source code","fork":false,"url":"https://api.github.com/repos/slimphp/Slim","forks_url":"https://api.github.com/repos/slimphp/Slim/forks","keys_url":"https://api.github.com/repos/slimphp/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slimphp/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slimphp/Slim/teams","hooks_url":"https://api.github.com/repos/slimphp/Slim/hooks","issue_events_url":"https://api.github.com/repos/slimphp/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/slimphp/Slim/events","assignees_url":"https://api.github.com/repos/slimphp/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/slimphp/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/slimphp/Slim/tags","blobs_url":"https://api.github.com/repos/slimphp/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slimphp/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slimphp/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/slimphp/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slimphp/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/slimphp/Slim/languages","stargazers_url":"https://api.github.com/repos/slimphp/Slim/stargazers","contributors_url":"https://api.github.com/repos/slimphp/Slim/contributors","subscribers_url":"https://api.github.com/repos/slimphp/Slim/subscribers","subscription_url":"https://api.github.com/repos/slimphp/Slim/subscription","commits_url":"https://api.github.com/repos/slimphp/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/slimphp/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/slimphp/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/slimphp/Slim/issues/comments{/number}","contents_url":"https://api.github.com/repos/slimphp/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/slimphp/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slimphp/Slim/merges","archive_url":"https://api.github.com/repos/slimphp/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slimphp/Slim/downloads","issues_url":"https://api.github.com/repos/slimphp/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/slimphp/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/slimphp/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/slimphp/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slimphp/Slim/labels{/name}","releases_url":"https://api.github.com/repos/slimphp/Slim/releases{/id}","created_at":"2010-09-21T01:17:06Z","updated_at":"2015-07-09T11:11:07Z","pushed_at":"2015-07-09T12:01:02Z","git_url":"git://github.com/slimphp/Slim.git","ssh_url":"git@github.com:slimphp/Slim.git","clone_url":"https://github.com/slimphp/Slim.git","svn_url":"https://github.com/slimphp/Slim","homepage":"http://slimframework.com","size":356372,"stargazers_count":5426,"watchers_count":5426,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":981,"mirror_url":null,"open_issues_count":20,"forks":981,"open_issues":20,"watchers":5426,"default_branch":"2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1345"},"html":{"href":"https://github.com/slimphp/Slim/pull/1345"},"issue":{"href":"https://api.github.com/repos/slimphp/Slim/issues/1345"},"comments":{"href":"https://api.github.com/repos/slimphp/Slim/issues/1345/comments"},"review_comments":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1345/comments"},"review_comment":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1345/commits"},"statuses":{"href":"https://api.github.com/repos/slimphp/Slim/statuses/ae77a9afe7d0c50b723972f3c9bbe54eb1a6210d"}}}}