{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/26138943","id":26138943,"diff_hunk":"@@ -0,0 +1,115 @@\n+<?php\n+/**\n+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n+ * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n+ *\n+ * Licensed under The MIT License\n+ * For full copyright and license information, please see the LICENSE.txt\n+ * Redistributions of files must retain the above copyright notice.\n+ *\n+ * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n+ * @link          http://cakephp.org CakePHP(tm) Project\n+ * @since         3.0.0\n+ * @license       http://www.opensource.org/licenses/mit-license.php MIT License\n+ */\n+\n+namespace Cake\\Shell\\Task;\n+\n+use Cake\\Console\\Shell;\n+use Cake\\Core\\App;\n+use Cake\\Filesystem\\File;\n+\n+/**\n+ * Task for loading plugins.\n+ *\n+ */\n+class LoadTask extends Shell\n+{\n+\n+    public $path = null;\n+    public $bootstrap = null;\n+\n+    /**\n+     * Execution method always used for tasks\n+     *\n+     * @return boolean if action passed\n+     *\n+     */\n+    public function main($plugin = null)\n+    {\n+\n+        $this->path = current(App::path('Plugin'));","path":"src/Shell/Task/LoadTask.php","position":41,"original_position":41,"commit_id":"f1dffee111442a94d82f2fc25f4f16ddd9972b50","original_commit_id":"f1dffee111442a94d82f2fc25f4f16ddd9972b50","user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","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":"This means plugins can be loaded from only one folder, making this a pretty limiting solution.","created_at":"2015-03-10T16:38:26Z","updated_at":"2015-03-10T16:38:26Z","html_url":"https://github.com/cakephp/cakephp/pull/6042#discussion_r26138943","pull_request_url":"https://api.github.com/repos/cakephp/cakephp/pulls/6042","_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/26138943"},"html":{"href":"https://github.com/cakephp/cakephp/pull/6042#discussion_r26138943"},"pull_request":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/6042"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/6042","id":30865180,"html_url":"https://github.com/cakephp/cakephp/pull/6042","diff_url":"https://github.com/cakephp/cakephp/pull/6042.diff","patch_url":"https://github.com/cakephp/cakephp/pull/6042.patch","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6042","number":6042,"state":"open","locked":false,"title":"Added plugin shell: load and unload","user":{"login":"bobmulder","id":5465074,"avatar_url":"https://avatars.githubusercontent.com/u/5465074?v=3","gravatar_id":"","url":"https://api.github.com/users/bobmulder","html_url":"https://github.com/bobmulder","followers_url":"https://api.github.com/users/bobmulder/followers","following_url":"https://api.github.com/users/bobmulder/following{/other_user}","gists_url":"https://api.github.com/users/bobmulder/gists{/gist_id}","starred_url":"https://api.github.com/users/bobmulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobmulder/subscriptions","organizations_url":"https://api.github.com/users/bobmulder/orgs","repos_url":"https://api.github.com/users/bobmulder/repos","events_url":"https://api.github.com/users/bobmulder/events{/privacy}","received_events_url":"https://api.github.com/users/bobmulder/received_events","type":"User","site_admin":false},"body":"Implemented the Plugin Shell (https://github.com/cakephp/plugin-installer/issues/28).\r\n\r\nThe idea was to rebuild the PluginAssets Shell but @ADmad and I decided to do it this way for now.\r\n\r\nExample:\r\n```\r\n// loading a plugin\r\nbin/cake plugin load MyPlugin\r\n\r\n// loading a plugin including bootstrap and routes\r\nbin/cake plugin load -b -r MyPlugin\r\n\r\n// unloading plugin\r\nbin/cake plugin unload MyPlugin\r\n```\r\n\r\nI will fork the docs and add this to the documentation.\r\n\r\nTests for the tasks are working.","created_at":"2015-03-10T16:08:02Z","updated_at":"2015-03-10T16:38:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78b97e1bf175b3fc26e3c738c1ca46c3b5f2f564","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cakephp/cakephp/pulls/6042/commits","review_comments_url":"https://api.github.com/repos/cakephp/cakephp/pulls/6042/comments","review_comment_url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6042/comments","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/f1dffee111442a94d82f2fc25f4f16ddd9972b50","head":{"label":"bobmulder:3.0-plugin-load-shell","ref":"3.0-plugin-load-shell","sha":"f1dffee111442a94d82f2fc25f4f16ddd9972b50","user":{"login":"bobmulder","id":5465074,"avatar_url":"https://avatars.githubusercontent.com/u/5465074?v=3","gravatar_id":"","url":"https://api.github.com/users/bobmulder","html_url":"https://github.com/bobmulder","followers_url":"https://api.github.com/users/bobmulder/followers","following_url":"https://api.github.com/users/bobmulder/following{/other_user}","gists_url":"https://api.github.com/users/bobmulder/gists{/gist_id}","starred_url":"https://api.github.com/users/bobmulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobmulder/subscriptions","organizations_url":"https://api.github.com/users/bobmulder/orgs","repos_url":"https://api.github.com/users/bobmulder/repos","events_url":"https://api.github.com/users/bobmulder/events{/privacy}","received_events_url":"https://api.github.com/users/bobmulder/received_events","type":"User","site_admin":false},"repo":{"id":31946718,"name":"cakephp","full_name":"bobmulder/cakephp","owner":{"login":"bobmulder","id":5465074,"avatar_url":"https://avatars.githubusercontent.com/u/5465074?v=3","gravatar_id":"","url":"https://api.github.com/users/bobmulder","html_url":"https://github.com/bobmulder","followers_url":"https://api.github.com/users/bobmulder/followers","following_url":"https://api.github.com/users/bobmulder/following{/other_user}","gists_url":"https://api.github.com/users/bobmulder/gists{/gist_id}","starred_url":"https://api.github.com/users/bobmulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobmulder/subscriptions","organizations_url":"https://api.github.com/users/bobmulder/orgs","repos_url":"https://api.github.com/users/bobmulder/repos","events_url":"https://api.github.com/users/bobmulder/events{/privacy}","received_events_url":"https://api.github.com/users/bobmulder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bobmulder/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":true,"url":"https://api.github.com/repos/bobmulder/cakephp","forks_url":"https://api.github.com/repos/bobmulder/cakephp/forks","keys_url":"https://api.github.com/repos/bobmulder/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobmulder/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobmulder/cakephp/teams","hooks_url":"https://api.github.com/repos/bobmulder/cakephp/hooks","issue_events_url":"https://api.github.com/repos/bobmulder/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/bobmulder/cakephp/events","assignees_url":"https://api.github.com/repos/bobmulder/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/bobmulder/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/bobmulder/cakephp/tags","blobs_url":"https://api.github.com/repos/bobmulder/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobmulder/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobmulder/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobmulder/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobmulder/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/bobmulder/cakephp/languages","stargazers_url":"https://api.github.com/repos/bobmulder/cakephp/stargazers","contributors_url":"https://api.github.com/repos/bobmulder/cakephp/contributors","subscribers_url":"https://api.github.com/repos/bobmulder/cakephp/subscribers","subscription_url":"https://api.github.com/repos/bobmulder/cakephp/subscription","commits_url":"https://api.github.com/repos/bobmulder/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobmulder/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobmulder/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobmulder/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobmulder/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/bobmulder/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobmulder/cakephp/merges","archive_url":"https://api.github.com/repos/bobmulder/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobmulder/cakephp/downloads","issues_url":"https://api.github.com/repos/bobmulder/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/bobmulder/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/bobmulder/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/bobmulder/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobmulder/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/bobmulder/cakephp/releases{/id}","created_at":"2015-03-10T08:43:29Z","updated_at":"2015-03-10T11:27:27Z","pushed_at":"2015-03-10T16:19:58Z","git_url":"git://github.com/bobmulder/cakephp.git","ssh_url":"git@github.com:bobmulder/cakephp.git","clone_url":"https://github.com/bobmulder/cakephp.git","svn_url":"https://github.com/bobmulder/cakephp","homepage":"http://cakephp.org","size":153850,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:3.0","ref":"3.0","sha":"0064e25ddb006b0a287a6535679ce09d06e3f822","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","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":656494,"name":"cakephp","full_name":"cakephp/cakephp","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","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},"private":false,"html_url":"https://github.com/cakephp/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":false,"url":"https://api.github.com/repos/cakephp/cakephp","forks_url":"https://api.github.com/repos/cakephp/cakephp/forks","keys_url":"https://api.github.com/repos/cakephp/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/cakephp/teams","hooks_url":"https://api.github.com/repos/cakephp/cakephp/hooks","issue_events_url":"https://api.github.com/repos/cakephp/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/cakephp/events","assignees_url":"https://api.github.com/repos/cakephp/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/cakephp/tags","blobs_url":"https://api.github.com/repos/cakephp/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/cakephp/languages","stargazers_url":"https://api.github.com/repos/cakephp/cakephp/stargazers","contributors_url":"https://api.github.com/repos/cakephp/cakephp/contributors","subscribers_url":"https://api.github.com/repos/cakephp/cakephp/subscribers","subscription_url":"https://api.github.com/repos/cakephp/cakephp/subscription","commits_url":"https://api.github.com/repos/cakephp/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/cakephp/merges","archive_url":"https://api.github.com/repos/cakephp/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/cakephp/downloads","issues_url":"https://api.github.com/repos/cakephp/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/cakephp/releases{/id}","created_at":"2010-05-08T14:38:22Z","updated_at":"2015-03-10T16:38:22Z","pushed_at":"2015-03-10T07:20:45Z","git_url":"git://github.com/cakephp/cakephp.git","ssh_url":"git@github.com:cakephp/cakephp.git","clone_url":"https://github.com/cakephp/cakephp.git","svn_url":"https://github.com/cakephp/cakephp","homepage":"http://cakephp.org","size":153850,"stargazers_count":5556,"watchers_count":5556,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2486,"mirror_url":null,"open_issues_count":116,"forks":2486,"open_issues":116,"watchers":5556,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/6042"},"html":{"href":"https://github.com/cakephp/cakephp/pull/6042"},"issue":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/6042"},"comments":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/6042/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/6042/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/6042/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/cakephp/statuses/f1dffee111442a94d82f2fc25f4f16ddd9972b50"}}}}