{"action":"created","comment":{"url":"https://api.github.com/repos/Charitable/Charitable/pulls/comments/146149833","pull_request_review_id":71050426,"id":146149833,"diff_hunk":"@@ -0,0 +1,48 @@\n+<?php\n+/**\n+ * Dynamically loads the class attempting to be instantiated elsewhere in the\n+ * plugin.\n+ *\n+ * @package Charitable\\Includes\n+ */\n+\n+spl_autoload_register( 'charitable_autoloader' );\n+\n+/**\n+ * Dynamically loads the class attempting to be instantiated elsewhere in the\n+ * plugin by looking at the $class_name parameter being passed as an argument.\n+ *\n+ * The argument should be in the form: TutsPlus_Namespace_Demo\\Namespace. The\n+ * function will then break the fully-qualified class name into its pieces and\n+ * will then build a file to the path based on the namespace.\n+ *\n+ * The namespaces in this plugin map to the paths in the directory structure.\n+ *\n+ * @param string $class_name The fully-qualified name of the class to load.\n+ */\n+function charitable_autoloader( $class_name ) {","path":"includes/charitable-autoloader.php","position":23,"original_position":23,"commit_id":"295a67429e6a6849c512c7ed58f3c3d4a53bb072","original_commit_id":"295a67429e6a6849c512c7ed58f3c3d4a53bb072","user":{"login":"ericnicolaas","id":676582,"avatar_url":"https://avatars0.githubusercontent.com/u/676582?v=4","gravatar_id":"","url":"https://api.github.com/users/ericnicolaas","html_url":"https://github.com/ericnicolaas","followers_url":"https://api.github.com/users/ericnicolaas/followers","following_url":"https://api.github.com/users/ericnicolaas/following{/other_user}","gists_url":"https://api.github.com/users/ericnicolaas/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnicolaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnicolaas/subscriptions","organizations_url":"https://api.github.com/users/ericnicolaas/orgs","repos_url":"https://api.github.com/users/ericnicolaas/repos","events_url":"https://api.github.com/users/ericnicolaas/events{/privacy}","received_events_url":"https://api.github.com/users/ericnicolaas/received_events","type":"User","site_admin":false},"body":"Also need a `@since` and `@return`.","created_at":"2017-10-23T00:14:21Z","updated_at":"2017-10-23T00:14:21Z","html_url":"https://github.com/Charitable/Charitable/pull/419#discussion_r146149833","pull_request_url":"https://api.github.com/repos/Charitable/Charitable/pulls/419","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Charitable/Charitable/pulls/comments/146149833"},"html":{"href":"https://github.com/Charitable/Charitable/pull/419#discussion_r146149833"},"pull_request":{"href":"https://api.github.com/repos/Charitable/Charitable/pulls/419"}}},"pull_request":{"url":"https://api.github.com/repos/Charitable/Charitable/pulls/419","id":145364775,"html_url":"https://github.com/Charitable/Charitable/pull/419","diff_url":"https://github.com/Charitable/Charitable/pull/419.diff","patch_url":"https://github.com/Charitable/Charitable/pull/419.patch","issue_url":"https://api.github.com/repos/Charitable/Charitable/issues/419","number":419,"state":"open","locked":false,"title":"Autoload mapping","user":{"login":"helgatheviking","id":507025,"avatar_url":"https://avatars1.githubusercontent.com/u/507025?v=4","gravatar_id":"","url":"https://api.github.com/users/helgatheviking","html_url":"https://github.com/helgatheviking","followers_url":"https://api.github.com/users/helgatheviking/followers","following_url":"https://api.github.com/users/helgatheviking/following{/other_user}","gists_url":"https://api.github.com/users/helgatheviking/gists{/gist_id}","starred_url":"https://api.github.com/users/helgatheviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgatheviking/subscriptions","organizations_url":"https://api.github.com/users/helgatheviking/orgs","repos_url":"https://api.github.com/users/helgatheviking/repos","events_url":"https://api.github.com/users/helgatheviking/events{/privacy}","received_events_url":"https://api.github.com/users/helgatheviking/received_events","type":"User","site_admin":false},"body":"Feel free to close this, just wanted to show you what I was able to come up with as a workaround... sort of autoloading without renaming everything. ","created_at":"2017-10-09T01:54:59Z","updated_at":"2017-10-23T00:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70156009d9cdcdb3fff28c09626f6d314acdef51","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Charitable/Charitable/pulls/419/commits","review_comments_url":"https://api.github.com/repos/Charitable/Charitable/pulls/419/comments","review_comment_url":"https://api.github.com/repos/Charitable/Charitable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Charitable/Charitable/issues/419/comments","statuses_url":"https://api.github.com/repos/Charitable/Charitable/statuses/295a67429e6a6849c512c7ed58f3c3d4a53bb072","head":{"label":"helgatheviking:autoload-mapping","ref":"autoload-mapping","sha":"295a67429e6a6849c512c7ed58f3c3d4a53bb072","user":{"login":"helgatheviking","id":507025,"avatar_url":"https://avatars1.githubusercontent.com/u/507025?v=4","gravatar_id":"","url":"https://api.github.com/users/helgatheviking","html_url":"https://github.com/helgatheviking","followers_url":"https://api.github.com/users/helgatheviking/followers","following_url":"https://api.github.com/users/helgatheviking/following{/other_user}","gists_url":"https://api.github.com/users/helgatheviking/gists{/gist_id}","starred_url":"https://api.github.com/users/helgatheviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgatheviking/subscriptions","organizations_url":"https://api.github.com/users/helgatheviking/orgs","repos_url":"https://api.github.com/users/helgatheviking/repos","events_url":"https://api.github.com/users/helgatheviking/events{/privacy}","received_events_url":"https://api.github.com/users/helgatheviking/received_events","type":"User","site_admin":false},"repo":{"id":48266941,"name":"Charitable","full_name":"helgatheviking/Charitable","owner":{"login":"helgatheviking","id":507025,"avatar_url":"https://avatars1.githubusercontent.com/u/507025?v=4","gravatar_id":"","url":"https://api.github.com/users/helgatheviking","html_url":"https://github.com/helgatheviking","followers_url":"https://api.github.com/users/helgatheviking/followers","following_url":"https://api.github.com/users/helgatheviking/following{/other_user}","gists_url":"https://api.github.com/users/helgatheviking/gists{/gist_id}","starred_url":"https://api.github.com/users/helgatheviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgatheviking/subscriptions","organizations_url":"https://api.github.com/users/helgatheviking/orgs","repos_url":"https://api.github.com/users/helgatheviking/repos","events_url":"https://api.github.com/users/helgatheviking/events{/privacy}","received_events_url":"https://api.github.com/users/helgatheviking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/helgatheviking/Charitable","description":"Fundraising plugin for WordPress.","fork":true,"url":"https://api.github.com/repos/helgatheviking/Charitable","forks_url":"https://api.github.com/repos/helgatheviking/Charitable/forks","keys_url":"https://api.github.com/repos/helgatheviking/Charitable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helgatheviking/Charitable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helgatheviking/Charitable/teams","hooks_url":"https://api.github.com/repos/helgatheviking/Charitable/hooks","issue_events_url":"https://api.github.com/repos/helgatheviking/Charitable/issues/events{/number}","events_url":"https://api.github.com/repos/helgatheviking/Charitable/events","assignees_url":"https://api.github.com/repos/helgatheviking/Charitable/assignees{/user}","branches_url":"https://api.github.com/repos/helgatheviking/Charitable/branches{/branch}","tags_url":"https://api.github.com/repos/helgatheviking/Charitable/tags","blobs_url":"https://api.github.com/repos/helgatheviking/Charitable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helgatheviking/Charitable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helgatheviking/Charitable/git/refs{/sha}","trees_url":"https://api.github.com/repos/helgatheviking/Charitable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helgatheviking/Charitable/statuses/{sha}","languages_url":"https://api.github.com/repos/helgatheviking/Charitable/languages","stargazers_url":"https://api.github.com/repos/helgatheviking/Charitable/stargazers","contributors_url":"https://api.github.com/repos/helgatheviking/Charitable/contributors","subscribers_url":"https://api.github.com/repos/helgatheviking/Charitable/subscribers","subscription_url":"https://api.github.com/repos/helgatheviking/Charitable/subscription","commits_url":"https://api.github.com/repos/helgatheviking/Charitable/commits{/sha}","git_commits_url":"https://api.github.com/repos/helgatheviking/Charitable/git/commits{/sha}","comments_url":"https://api.github.com/repos/helgatheviking/Charitable/comments{/number}","issue_comment_url":"https://api.github.com/repos/helgatheviking/Charitable/issues/comments{/number}","contents_url":"https://api.github.com/repos/helgatheviking/Charitable/contents/{+path}","compare_url":"https://api.github.com/repos/helgatheviking/Charitable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helgatheviking/Charitable/merges","archive_url":"https://api.github.com/repos/helgatheviking/Charitable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helgatheviking/Charitable/downloads","issues_url":"https://api.github.com/repos/helgatheviking/Charitable/issues{/number}","pulls_url":"https://api.github.com/repos/helgatheviking/Charitable/pulls{/number}","milestones_url":"https://api.github.com/repos/helgatheviking/Charitable/milestones{/number}","notifications_url":"https://api.github.com/repos/helgatheviking/Charitable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helgatheviking/Charitable/labels{/name}","releases_url":"https://api.github.com/repos/helgatheviking/Charitable/releases{/id}","deployments_url":"https://api.github.com/repos/helgatheviking/Charitable/deployments","created_at":"2015-12-19T03:23:04Z","updated_at":"2016-01-16T21:15:17Z","pushed_at":"2017-10-14T18:37:01Z","git_url":"git://github.com/helgatheviking/Charitable.git","ssh_url":"git@github.com:helgatheviking/Charitable.git","clone_url":"https://github.com/helgatheviking/Charitable.git","svn_url":"https://github.com/helgatheviking/Charitable","homepage":null,"size":5863,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Charitable:master","ref":"master","sha":"95fac8acd110b144df77262eb9f11e1fd9dbfeb5","user":{"login":"Charitable","id":13250374,"avatar_url":"https://avatars1.githubusercontent.com/u/13250374?v=4","gravatar_id":"","url":"https://api.github.com/users/Charitable","html_url":"https://github.com/Charitable","followers_url":"https://api.github.com/users/Charitable/followers","following_url":"https://api.github.com/users/Charitable/following{/other_user}","gists_url":"https://api.github.com/users/Charitable/gists{/gist_id}","starred_url":"https://api.github.com/users/Charitable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charitable/subscriptions","organizations_url":"https://api.github.com/users/Charitable/orgs","repos_url":"https://api.github.com/users/Charitable/repos","events_url":"https://api.github.com/users/Charitable/events{/privacy}","received_events_url":"https://api.github.com/users/Charitable/received_events","type":"Organization","site_admin":false},"repo":{"id":29112452,"name":"Charitable","full_name":"Charitable/Charitable","owner":{"login":"Charitable","id":13250374,"avatar_url":"https://avatars1.githubusercontent.com/u/13250374?v=4","gravatar_id":"","url":"https://api.github.com/users/Charitable","html_url":"https://github.com/Charitable","followers_url":"https://api.github.com/users/Charitable/followers","following_url":"https://api.github.com/users/Charitable/following{/other_user}","gists_url":"https://api.github.com/users/Charitable/gists{/gist_id}","starred_url":"https://api.github.com/users/Charitable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charitable/subscriptions","organizations_url":"https://api.github.com/users/Charitable/orgs","repos_url":"https://api.github.com/users/Charitable/repos","events_url":"https://api.github.com/users/Charitable/events{/privacy}","received_events_url":"https://api.github.com/users/Charitable/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Charitable/Charitable","description":"Fundraising plugin for WordPress.","fork":false,"url":"https://api.github.com/repos/Charitable/Charitable","forks_url":"https://api.github.com/repos/Charitable/Charitable/forks","keys_url":"https://api.github.com/repos/Charitable/Charitable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Charitable/Charitable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Charitable/Charitable/teams","hooks_url":"https://api.github.com/repos/Charitable/Charitable/hooks","issue_events_url":"https://api.github.com/repos/Charitable/Charitable/issues/events{/number}","events_url":"https://api.github.com/repos/Charitable/Charitable/events","assignees_url":"https://api.github.com/repos/Charitable/Charitable/assignees{/user}","branches_url":"https://api.github.com/repos/Charitable/Charitable/branches{/branch}","tags_url":"https://api.github.com/repos/Charitable/Charitable/tags","blobs_url":"https://api.github.com/repos/Charitable/Charitable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Charitable/Charitable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Charitable/Charitable/git/refs{/sha}","trees_url":"https://api.github.com/repos/Charitable/Charitable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Charitable/Charitable/statuses/{sha}","languages_url":"https://api.github.com/repos/Charitable/Charitable/languages","stargazers_url":"https://api.github.com/repos/Charitable/Charitable/stargazers","contributors_url":"https://api.github.com/repos/Charitable/Charitable/contributors","subscribers_url":"https://api.github.com/repos/Charitable/Charitable/subscribers","subscription_url":"https://api.github.com/repos/Charitable/Charitable/subscription","commits_url":"https://api.github.com/repos/Charitable/Charitable/commits{/sha}","git_commits_url":"https://api.github.com/repos/Charitable/Charitable/git/commits{/sha}","comments_url":"https://api.github.com/repos/Charitable/Charitable/comments{/number}","issue_comment_url":"https://api.github.com/repos/Charitable/Charitable/issues/comments{/number}","contents_url":"https://api.github.com/repos/Charitable/Charitable/contents/{+path}","compare_url":"https://api.github.com/repos/Charitable/Charitable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Charitable/Charitable/merges","archive_url":"https://api.github.com/repos/Charitable/Charitable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Charitable/Charitable/downloads","issues_url":"https://api.github.com/repos/Charitable/Charitable/issues{/number}","pulls_url":"https://api.github.com/repos/Charitable/Charitable/pulls{/number}","milestones_url":"https://api.github.com/repos/Charitable/Charitable/milestones{/number}","notifications_url":"https://api.github.com/repos/Charitable/Charitable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Charitable/Charitable/labels{/name}","releases_url":"https://api.github.com/repos/Charitable/Charitable/releases{/id}","deployments_url":"https://api.github.com/repos/Charitable/Charitable/deployments","created_at":"2015-01-12T00:59:34Z","updated_at":"2017-10-17T05:36:08Z","pushed_at":"2017-10-16T03:28:16Z","git_url":"git://github.com/Charitable/Charitable.git","ssh_url":"git@github.com:Charitable/Charitable.git","clone_url":"https://github.com/Charitable/Charitable.git","svn_url":"https://github.com/Charitable/Charitable","homepage":null,"size":6496,"stargazers_count":33,"watchers_count":33,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":67,"forks":23,"open_issues":67,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Charitable/Charitable/pulls/419"},"html":{"href":"https://github.com/Charitable/Charitable/pull/419"},"issue":{"href":"https://api.github.com/repos/Charitable/Charitable/issues/419"},"comments":{"href":"https://api.github.com/repos/Charitable/Charitable/issues/419/comments"},"review_comments":{"href":"https://api.github.com/repos/Charitable/Charitable/pulls/419/comments"},"review_comment":{"href":"https://api.github.com/repos/Charitable/Charitable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Charitable/Charitable/pulls/419/commits"},"statuses":{"href":"https://api.github.com/repos/Charitable/Charitable/statuses/295a67429e6a6849c512c7ed58f3c3d4a53bb072"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ericnicolaas"}}