{"action":"created","comment":{"url":"https://api.github.com/repos/davist11/craft-reroute/pulls/comments/233125634","pull_request_review_id":174462951,"id":233125634,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzEyNTYzNA==","diff_hunk":"@@ -0,0 +1,36 @@\n+<?php\n+/**\n+ * Reroute plugin for Craft CMS 3.x\n+ *\n+ * Manage 301/302 redirects in the control panel.\n+ *\n+ * @link      https://www.trevor-davis.com\n+ * @copyright Copyright (c) 2018 Trevor Davis\n+ */\n+\n+namespace davist11\\reroute\\variables;\n+\n+use davist11\\reroute\\Reroute;\n+\n+use Craft;\n+\n+/**\n+ * @author    Trevor Davis\n+ * @package   Reroute\n+ * @since     2.0.0\n+ */\n+class RerouteVariable\n+{\n+    // Public Methods\n+    // =========================================================================\n+\n+    public function getAll()\n+    {\n+        return Reroute::getInstance()->rerouteService->getAll();\n+    }\n+\n+    public function getById($rerouteId)\n+    {\n+        return Reroute::getInstance()->rerouteService->getById($rerouteId);","path":"src/variables/RerouteVariable.php","position":34,"original_position":34,"commit_id":"40c9bf458e0a45cbf3e1070bcd4ee81b52410a6c","original_commit_id":"40c9bf458e0a45cbf3e1070bcd4ee81b52410a6c","user":{"login":"mzlock","id":1087001,"node_id":"MDQ6VXNlcjEwODcwMDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1087001?v=4","gravatar_id":"","url":"https://api.github.com/users/mzlock","html_url":"https://github.com/mzlock","followers_url":"https://api.github.com/users/mzlock/followers","following_url":"https://api.github.com/users/mzlock/following{/other_user}","gists_url":"https://api.github.com/users/mzlock/gists{/gist_id}","starred_url":"https://api.github.com/users/mzlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzlock/subscriptions","organizations_url":"https://api.github.com/users/mzlock/orgs","repos_url":"https://api.github.com/users/mzlock/repos","events_url":"https://api.github.com/users/mzlock/events{/privacy}","received_events_url":"https://api.github.com/users/mzlock/received_events","type":"User","site_admin":false},"body":"Same here - you could use `Reroute::$plugin`","created_at":"2018-11-13T16:41:15Z","updated_at":"2018-11-13T16:41:22Z","html_url":"https://github.com/davist11/craft-reroute/pull/18#discussion_r233125634","pull_request_url":"https://api.github.com/repos/davist11/craft-reroute/pulls/18","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/davist11/craft-reroute/pulls/comments/233125634"},"html":{"href":"https://github.com/davist11/craft-reroute/pull/18#discussion_r233125634"},"pull_request":{"href":"https://api.github.com/repos/davist11/craft-reroute/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/davist11/craft-reroute/pulls/18","id":230538186,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNTM4MTg2","html_url":"https://github.com/davist11/craft-reroute/pull/18","diff_url":"https://github.com/davist11/craft-reroute/pull/18.diff","patch_url":"https://github.com/davist11/craft-reroute/pull/18.patch","issue_url":"https://api.github.com/repos/davist11/craft-reroute/issues/18","number":18,"state":"open","locked":false,"title":"Craft 3 upgrade","user":{"login":"davist11","id":199985,"node_id":"MDQ6VXNlcjE5OTk4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/199985?v=4","gravatar_id":"","url":"https://api.github.com/users/davist11","html_url":"https://github.com/davist11","followers_url":"https://api.github.com/users/davist11/followers","following_url":"https://api.github.com/users/davist11/following{/other_user}","gists_url":"https://api.github.com/users/davist11/gists{/gist_id}","starred_url":"https://api.github.com/users/davist11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davist11/subscriptions","organizations_url":"https://api.github.com/users/davist11/orgs","repos_url":"https://api.github.com/users/davist11/repos","events_url":"https://api.github.com/users/davist11/events{/privacy}","received_events_url":"https://api.github.com/users/davist11/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-13T16:19:43Z","updated_at":"2018-11-13T16:41:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f1bfbe964b6b6c02891d479082250d8ca80a14b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/davist11/craft-reroute/pulls/18/commits","review_comments_url":"https://api.github.com/repos/davist11/craft-reroute/pulls/18/comments","review_comment_url":"https://api.github.com/repos/davist11/craft-reroute/pulls/comments{/number}","comments_url":"https://api.github.com/repos/davist11/craft-reroute/issues/18/comments","statuses_url":"https://api.github.com/repos/davist11/craft-reroute/statuses/40c9bf458e0a45cbf3e1070bcd4ee81b52410a6c","head":{"label":"davist11:td/craft-3","ref":"td/craft-3","sha":"40c9bf458e0a45cbf3e1070bcd4ee81b52410a6c","user":{"login":"davist11","id":199985,"node_id":"MDQ6VXNlcjE5OTk4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/199985?v=4","gravatar_id":"","url":"https://api.github.com/users/davist11","html_url":"https://github.com/davist11","followers_url":"https://api.github.com/users/davist11/followers","following_url":"https://api.github.com/users/davist11/following{/other_user}","gists_url":"https://api.github.com/users/davist11/gists{/gist_id}","starred_url":"https://api.github.com/users/davist11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davist11/subscriptions","organizations_url":"https://api.github.com/users/davist11/orgs","repos_url":"https://api.github.com/users/davist11/repos","events_url":"https://api.github.com/users/davist11/events{/privacy}","received_events_url":"https://api.github.com/users/davist11/received_events","type":"User","site_admin":false},"repo":{"id":15059645,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1OTY0NQ==","name":"craft-reroute","full_name":"davist11/craft-reroute","private":false,"owner":{"login":"davist11","id":199985,"node_id":"MDQ6VXNlcjE5OTk4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/199985?v=4","gravatar_id":"","url":"https://api.github.com/users/davist11","html_url":"https://github.com/davist11","followers_url":"https://api.github.com/users/davist11/followers","following_url":"https://api.github.com/users/davist11/following{/other_user}","gists_url":"https://api.github.com/users/davist11/gists{/gist_id}","starred_url":"https://api.github.com/users/davist11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davist11/subscriptions","organizations_url":"https://api.github.com/users/davist11/orgs","repos_url":"https://api.github.com/users/davist11/repos","events_url":"https://api.github.com/users/davist11/events{/privacy}","received_events_url":"https://api.github.com/users/davist11/received_events","type":"User","site_admin":false},"html_url":"https://github.com/davist11/craft-reroute","description":"Manage 301/302 redirects in the control panel.","fork":false,"url":"https://api.github.com/repos/davist11/craft-reroute","forks_url":"https://api.github.com/repos/davist11/craft-reroute/forks","keys_url":"https://api.github.com/repos/davist11/craft-reroute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davist11/craft-reroute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davist11/craft-reroute/teams","hooks_url":"https://api.github.com/repos/davist11/craft-reroute/hooks","issue_events_url":"https://api.github.com/repos/davist11/craft-reroute/issues/events{/number}","events_url":"https://api.github.com/repos/davist11/craft-reroute/events","assignees_url":"https://api.github.com/repos/davist11/craft-reroute/assignees{/user}","branches_url":"https://api.github.com/repos/davist11/craft-reroute/branches{/branch}","tags_url":"https://api.github.com/repos/davist11/craft-reroute/tags","blobs_url":"https://api.github.com/repos/davist11/craft-reroute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davist11/craft-reroute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davist11/craft-reroute/git/refs{/sha}","trees_url":"https://api.github.com/repos/davist11/craft-reroute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davist11/craft-reroute/statuses/{sha}","languages_url":"https://api.github.com/repos/davist11/craft-reroute/languages","stargazers_url":"https://api.github.com/repos/davist11/craft-reroute/stargazers","contributors_url":"https://api.github.com/repos/davist11/craft-reroute/contributors","subscribers_url":"https://api.github.com/repos/davist11/craft-reroute/subscribers","subscription_url":"https://api.github.com/repos/davist11/craft-reroute/subscription","commits_url":"https://api.github.com/repos/davist11/craft-reroute/commits{/sha}","git_commits_url":"https://api.github.com/repos/davist11/craft-reroute/git/commits{/sha}","comments_url":"https://api.github.com/repos/davist11/craft-reroute/comments{/number}","issue_comment_url":"https://api.github.com/repos/davist11/craft-reroute/issues/comments{/number}","contents_url":"https://api.github.com/repos/davist11/craft-reroute/contents/{+path}","compare_url":"https://api.github.com/repos/davist11/craft-reroute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davist11/craft-reroute/merges","archive_url":"https://api.github.com/repos/davist11/craft-reroute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davist11/craft-reroute/downloads","issues_url":"https://api.github.com/repos/davist11/craft-reroute/issues{/number}","pulls_url":"https://api.github.com/repos/davist11/craft-reroute/pulls{/number}","milestones_url":"https://api.github.com/repos/davist11/craft-reroute/milestones{/number}","notifications_url":"https://api.github.com/repos/davist11/craft-reroute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davist11/craft-reroute/labels{/name}","releases_url":"https://api.github.com/repos/davist11/craft-reroute/releases{/id}","deployments_url":"https://api.github.com/repos/davist11/craft-reroute/deployments","created_at":"2013-12-09T21:31:27Z","updated_at":"2018-09-26T15:14:46Z","pushed_at":"2018-11-13T16:19:43Z","git_url":"git://github.com/davist11/craft-reroute.git","ssh_url":"git@github.com:davist11/craft-reroute.git","clone_url":"https://github.com/davist11/craft-reroute.git","svn_url":"https://github.com/davist11/craft-reroute","homepage":"","size":16,"stargazers_count":62,"watchers_count":62,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":21,"open_issues":11,"watchers":62,"default_branch":"master"}},"base":{"label":"davist11:master","ref":"master","sha":"8a653f2e7c778ce8a6d77edc465a77a66cba050b","user":{"login":"davist11","id":199985,"node_id":"MDQ6VXNlcjE5OTk4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/199985?v=4","gravatar_id":"","url":"https://api.github.com/users/davist11","html_url":"https://github.com/davist11","followers_url":"https://api.github.com/users/davist11/followers","following_url":"https://api.github.com/users/davist11/following{/other_user}","gists_url":"https://api.github.com/users/davist11/gists{/gist_id}","starred_url":"https://api.github.com/users/davist11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davist11/subscriptions","organizations_url":"https://api.github.com/users/davist11/orgs","repos_url":"https://api.github.com/users/davist11/repos","events_url":"https://api.github.com/users/davist11/events{/privacy}","received_events_url":"https://api.github.com/users/davist11/received_events","type":"User","site_admin":false},"repo":{"id":15059645,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1OTY0NQ==","name":"craft-reroute","full_name":"davist11/craft-reroute","private":false,"owner":{"login":"davist11","id":199985,"node_id":"MDQ6VXNlcjE5OTk4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/199985?v=4","gravatar_id":"","url":"https://api.github.com/users/davist11","html_url":"https://github.com/davist11","followers_url":"https://api.github.com/users/davist11/followers","following_url":"https://api.github.com/users/davist11/following{/other_user}","gists_url":"https://api.github.com/users/davist11/gists{/gist_id}","starred_url":"https://api.github.com/users/davist11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davist11/subscriptions","organizations_url":"https://api.github.com/users/davist11/orgs","repos_url":"https://api.github.com/users/davist11/repos","events_url":"https://api.github.com/users/davist11/events{/privacy}","received_events_url":"https://api.github.com/users/davist11/received_events","type":"User","site_admin":false},"html_url":"https://github.com/davist11/craft-reroute","description":"Manage 301/302 redirects in the control panel.","fork":false,"url":"https://api.github.com/repos/davist11/craft-reroute","forks_url":"https://api.github.com/repos/davist11/craft-reroute/forks","keys_url":"https://api.github.com/repos/davist11/craft-reroute/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davist11/craft-reroute/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davist11/craft-reroute/teams","hooks_url":"https://api.github.com/repos/davist11/craft-reroute/hooks","issue_events_url":"https://api.github.com/repos/davist11/craft-reroute/issues/events{/number}","events_url":"https://api.github.com/repos/davist11/craft-reroute/events","assignees_url":"https://api.github.com/repos/davist11/craft-reroute/assignees{/user}","branches_url":"https://api.github.com/repos/davist11/craft-reroute/branches{/branch}","tags_url":"https://api.github.com/repos/davist11/craft-reroute/tags","blobs_url":"https://api.github.com/repos/davist11/craft-reroute/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davist11/craft-reroute/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davist11/craft-reroute/git/refs{/sha}","trees_url":"https://api.github.com/repos/davist11/craft-reroute/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davist11/craft-reroute/statuses/{sha}","languages_url":"https://api.github.com/repos/davist11/craft-reroute/languages","stargazers_url":"https://api.github.com/repos/davist11/craft-reroute/stargazers","contributors_url":"https://api.github.com/repos/davist11/craft-reroute/contributors","subscribers_url":"https://api.github.com/repos/davist11/craft-reroute/subscribers","subscription_url":"https://api.github.com/repos/davist11/craft-reroute/subscription","commits_url":"https://api.github.com/repos/davist11/craft-reroute/commits{/sha}","git_commits_url":"https://api.github.com/repos/davist11/craft-reroute/git/commits{/sha}","comments_url":"https://api.github.com/repos/davist11/craft-reroute/comments{/number}","issue_comment_url":"https://api.github.com/repos/davist11/craft-reroute/issues/comments{/number}","contents_url":"https://api.github.com/repos/davist11/craft-reroute/contents/{+path}","compare_url":"https://api.github.com/repos/davist11/craft-reroute/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davist11/craft-reroute/merges","archive_url":"https://api.github.com/repos/davist11/craft-reroute/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davist11/craft-reroute/downloads","issues_url":"https://api.github.com/repos/davist11/craft-reroute/issues{/number}","pulls_url":"https://api.github.com/repos/davist11/craft-reroute/pulls{/number}","milestones_url":"https://api.github.com/repos/davist11/craft-reroute/milestones{/number}","notifications_url":"https://api.github.com/repos/davist11/craft-reroute/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davist11/craft-reroute/labels{/name}","releases_url":"https://api.github.com/repos/davist11/craft-reroute/releases{/id}","deployments_url":"https://api.github.com/repos/davist11/craft-reroute/deployments","created_at":"2013-12-09T21:31:27Z","updated_at":"2018-09-26T15:14:46Z","pushed_at":"2018-11-13T16:19:43Z","git_url":"git://github.com/davist11/craft-reroute.git","ssh_url":"git@github.com:davist11/craft-reroute.git","clone_url":"https://github.com/davist11/craft-reroute.git","svn_url":"https://github.com/davist11/craft-reroute","homepage":"","size":16,"stargazers_count":62,"watchers_count":62,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":21,"open_issues":11,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/davist11/craft-reroute/pulls/18"},"html":{"href":"https://github.com/davist11/craft-reroute/pull/18"},"issue":{"href":"https://api.github.com/repos/davist11/craft-reroute/issues/18"},"comments":{"href":"https://api.github.com/repos/davist11/craft-reroute/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/davist11/craft-reroute/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/davist11/craft-reroute/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/davist11/craft-reroute/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/davist11/craft-reroute/statuses/40c9bf458e0a45cbf3e1070bcd4ee81b52410a6c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mzlock"}}