{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/debug_kit/pulls/comments/225117813","pull_request_review_id":164645870,"id":225117813,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTExNzgxMw==","diff_hunk":"@@ -14,10 +14,82 @@\n namespace DebugKit;\n \n use Cake\\Core\\BasePlugin;\n+use Cake\\Core\\Configure;\n+use Cake\\Core\\PluginApplicationInterface;\n+use Cake\\Event\\EventManager;\n+use Cake\\Http\\MiddlewareQueue;\n+use DebugKit\\Middleware\\DebugKitMiddleware;\n+use DebugKit\\Panel\\DeprecationsPanel;\n \n /**\n- * Plugin class for CakePHP 3.6.0 plugin collection.\n+ * Plugin class for CakePHP plugin collection.\n  */\n class Plugin extends BasePlugin\n {\n+    /**\n+     * @var \\DebugKit\\ToolbarService\n+     */\n+    protected $service;\n+\n+    /**\n+     * Load all the application configuration and bootstrap logic.\n+     *\n+     * @param \\Cake\\Core\\PluginApplicationInterface $app The host application\n+     * @return void\n+     */\n+    public function bootstrap(PluginApplicationInterface $app): void\n+    {\n+        $service = new ToolbarService(EventManager::instance(), (array)Configure::read('DebugKit'));\n+        $this->service = $service;\n+\n+        if (!$service->isEnabled() || php_sapi_name() === 'cli' || php_sapi_name() === 'phpdbg') {\n+            return;\n+        }\n+\n+        $this->setDeprecationHandler($service);\n+\n+        if (!$this->isEnabled('routes')) {","path":"src/Plugin.php","position":39,"original_position":39,"commit_id":"a5ddbd211dca0a62f7d43ad3578eea60b29f9687","original_commit_id":"a5ddbd211dca0a62f7d43ad3578eea60b29f9687","user":{"login":"ADmad","id":142658,"node_id":"MDQ6VXNlcjE0MjY1OA==","avatar_url":"https://avatars0.githubusercontent.com/u/142658?v=4","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"body":"Yes","created_at":"2018-10-15T10:42:26Z","updated_at":"2018-10-15T10:42:27Z","html_url":"https://github.com/cakephp/debug_kit/pull/646#discussion_r225117813","pull_request_url":"https://api.github.com/repos/cakephp/debug_kit/pulls/646","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cakephp/debug_kit/pulls/comments/225117813"},"html":{"href":"https://github.com/cakephp/debug_kit/pull/646#discussion_r225117813"},"pull_request":{"href":"https://api.github.com/repos/cakephp/debug_kit/pulls/646"}},"in_reply_to_id":225034271},"pull_request":{"url":"https://api.github.com/repos/cakephp/debug_kit/pulls/646","id":222677890,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNjc3ODkw","html_url":"https://github.com/cakephp/debug_kit/pull/646","diff_url":"https://github.com/cakephp/debug_kit/pull/646.diff","patch_url":"https://github.com/cakephp/debug_kit/pull/646.patch","issue_url":"https://api.github.com/repos/cakephp/debug_kit/issues/646","number":646,"state":"open","locked":false,"title":"prepaire to 4.x ","user":{"login":"saeideng","id":8215801,"node_id":"MDQ6VXNlcjgyMTU4MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/8215801?v=4","gravatar_id":"","url":"https://api.github.com/users/saeideng","html_url":"https://github.com/saeideng","followers_url":"https://api.github.com/users/saeideng/followers","following_url":"https://api.github.com/users/saeideng/following{/other_user}","gists_url":"https://api.github.com/users/saeideng/gists{/gist_id}","starred_url":"https://api.github.com/users/saeideng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeideng/subscriptions","organizations_url":"https://api.github.com/users/saeideng/orgs","repos_url":"https://api.github.com/users/saeideng/repos","events_url":"https://api.github.com/users/saeideng/events{/privacy}","received_events_url":"https://api.github.com/users/saeideng/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-13T21:42:52Z","updated_at":"2018-10-15T10:42:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1cafdf6585bc904d662fe4af3c34ecbc401a9fb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1068766022,"node_id":"MDU6TGFiZWwxMDY4NzY2MDIy","url":"https://api.github.com/repos/cakephp/debug_kit/labels/Deprecations","name":"Deprecations","color":"5241b5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cakephp/debug_kit/pulls/646/commits","review_comments_url":"https://api.github.com/repos/cakephp/debug_kit/pulls/646/comments","review_comment_url":"https://api.github.com/repos/cakephp/debug_kit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/debug_kit/issues/646/comments","statuses_url":"https://api.github.com/repos/cakephp/debug_kit/statuses/a5ddbd211dca0a62f7d43ad3578eea60b29f9687","head":{"label":"cakephp:4.x-fixes","ref":"4.x-fixes","sha":"a5ddbd211dca0a62f7d43ad3578eea60b29f9687","user":{"login":"cakephp","id":23666,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNjY2","avatar_url":"https://avatars0.githubusercontent.com/u/23666?v=4","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":423066,"node_id":"MDEwOlJlcG9zaXRvcnk0MjMwNjY=","name":"debug_kit","full_name":"cakephp/debug_kit","private":false,"owner":{"login":"cakephp","id":23666,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNjY2","avatar_url":"https://avatars0.githubusercontent.com/u/23666?v=4","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cakephp/debug_kit","description":"Debug Toolbar for CakePHP applications.","fork":false,"url":"https://api.github.com/repos/cakephp/debug_kit","forks_url":"https://api.github.com/repos/cakephp/debug_kit/forks","keys_url":"https://api.github.com/repos/cakephp/debug_kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/debug_kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/debug_kit/teams","hooks_url":"https://api.github.com/repos/cakephp/debug_kit/hooks","issue_events_url":"https://api.github.com/repos/cakephp/debug_kit/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/debug_kit/events","assignees_url":"https://api.github.com/repos/cakephp/debug_kit/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/debug_kit/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/debug_kit/tags","blobs_url":"https://api.github.com/repos/cakephp/debug_kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/debug_kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/debug_kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/debug_kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/debug_kit/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/debug_kit/languages","stargazers_url":"https://api.github.com/repos/cakephp/debug_kit/stargazers","contributors_url":"https://api.github.com/repos/cakephp/debug_kit/contributors","subscribers_url":"https://api.github.com/repos/cakephp/debug_kit/subscribers","subscription_url":"https://api.github.com/repos/cakephp/debug_kit/subscription","commits_url":"https://api.github.com/repos/cakephp/debug_kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/debug_kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/debug_kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/debug_kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/debug_kit/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/debug_kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/debug_kit/merges","archive_url":"https://api.github.com/repos/cakephp/debug_kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/debug_kit/downloads","issues_url":"https://api.github.com/repos/cakephp/debug_kit/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/debug_kit/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/debug_kit/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/debug_kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/debug_kit/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/debug_kit/releases{/id}","deployments_url":"https://api.github.com/repos/cakephp/debug_kit/deployments","created_at":"2009-12-12T03:24:12Z","updated_at":"2018-10-11T17:59:20Z","pushed_at":"2018-10-14T21:12:12Z","git_url":"git://github.com/cakephp/debug_kit.git","ssh_url":"git@github.com:cakephp/debug_kit.git","clone_url":"https://github.com/cakephp/debug_kit.git","svn_url":"https://github.com/cakephp/debug_kit","homepage":"http://cakephp.org","size":2528,"stargazers_count":853,"watchers_count":853,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":594,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":594,"open_issues":33,"watchers":853,"default_branch":"master"}},"base":{"label":"cakephp:4.x","ref":"4.x","sha":"88907e3bd81ab9a93de762eb0781fb398870f71e","user":{"login":"cakephp","id":23666,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNjY2","avatar_url":"https://avatars0.githubusercontent.com/u/23666?v=4","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":423066,"node_id":"MDEwOlJlcG9zaXRvcnk0MjMwNjY=","name":"debug_kit","full_name":"cakephp/debug_kit","private":false,"owner":{"login":"cakephp","id":23666,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNjY2","avatar_url":"https://avatars0.githubusercontent.com/u/23666?v=4","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cakephp/debug_kit","description":"Debug Toolbar for CakePHP applications.","fork":false,"url":"https://api.github.com/repos/cakephp/debug_kit","forks_url":"https://api.github.com/repos/cakephp/debug_kit/forks","keys_url":"https://api.github.com/repos/cakephp/debug_kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/debug_kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/debug_kit/teams","hooks_url":"https://api.github.com/repos/cakephp/debug_kit/hooks","issue_events_url":"https://api.github.com/repos/cakephp/debug_kit/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/debug_kit/events","assignees_url":"https://api.github.com/repos/cakephp/debug_kit/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/debug_kit/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/debug_kit/tags","blobs_url":"https://api.github.com/repos/cakephp/debug_kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/debug_kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/debug_kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/debug_kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/debug_kit/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/debug_kit/languages","stargazers_url":"https://api.github.com/repos/cakephp/debug_kit/stargazers","contributors_url":"https://api.github.com/repos/cakephp/debug_kit/contributors","subscribers_url":"https://api.github.com/repos/cakephp/debug_kit/subscribers","subscription_url":"https://api.github.com/repos/cakephp/debug_kit/subscription","commits_url":"https://api.github.com/repos/cakephp/debug_kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/debug_kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/debug_kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/debug_kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/debug_kit/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/debug_kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/debug_kit/merges","archive_url":"https://api.github.com/repos/cakephp/debug_kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/debug_kit/downloads","issues_url":"https://api.github.com/repos/cakephp/debug_kit/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/debug_kit/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/debug_kit/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/debug_kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/debug_kit/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/debug_kit/releases{/id}","deployments_url":"https://api.github.com/repos/cakephp/debug_kit/deployments","created_at":"2009-12-12T03:24:12Z","updated_at":"2018-10-11T17:59:20Z","pushed_at":"2018-10-14T21:12:12Z","git_url":"git://github.com/cakephp/debug_kit.git","ssh_url":"git@github.com:cakephp/debug_kit.git","clone_url":"https://github.com/cakephp/debug_kit.git","svn_url":"https://github.com/cakephp/debug_kit","homepage":"http://cakephp.org","size":2528,"stargazers_count":853,"watchers_count":853,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":594,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":594,"open_issues":33,"watchers":853,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/debug_kit/pulls/646"},"html":{"href":"https://github.com/cakephp/debug_kit/pull/646"},"issue":{"href":"https://api.github.com/repos/cakephp/debug_kit/issues/646"},"comments":{"href":"https://api.github.com/repos/cakephp/debug_kit/issues/646/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/debug_kit/pulls/646/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/debug_kit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/debug_kit/pulls/646/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/debug_kit/statuses/a5ddbd211dca0a62f7d43ad3578eea60b29f9687"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ADmad"}}