{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/plugin-installer/issues/16","labels_url":"https://api.github.com/repos/cakephp/plugin-installer/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/plugin-installer/issues/16/comments","events_url":"https://api.github.com/repos/cakephp/plugin-installer/issues/16/events","html_url":"https://github.com/cakephp/plugin-installer/pull/16","id":54700417,"number":16,"title":"Dump autoload hook","user":{"login":"AD7six","id":33387,"avatar_url":"https://avatars.githubusercontent.com/u/33387?v=3","gravatar_id":"","url":"https://api.github.com/users/AD7six","html_url":"https://github.com/AD7six","followers_url":"https://api.github.com/users/AD7six/followers","following_url":"https://api.github.com/users/AD7six/following{/other_user}","gists_url":"https://api.github.com/users/AD7six/gists{/gist_id}","starred_url":"https://api.github.com/users/AD7six/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AD7six/subscriptions","organizations_url":"https://api.github.com/users/AD7six/orgs","repos_url":"https://api.github.com/users/AD7six/repos","events_url":"https://api.github.com/users/AD7six/events{/privacy}","received_events_url":"https://api.github.com/users/AD7six/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/plugin-installer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-18T15:52:46Z","updated_at":"2015-01-18T16:13:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cakephp/plugin-installer/pulls/16","html_url":"https://github.com/cakephp/plugin-installer/pull/16","diff_url":"https://github.com/cakephp/plugin-installer/pull/16.diff","patch_url":"https://github.com/cakephp/plugin-installer/pull/16.patch"},"body":"This allows the plugin information to be fresh whenever the autoloader is dumped.\r\n\r\nA follow up to this would be to then add to cakephp/app's composer file:\r\n\r\n     \"pre-autoload-dump\": \"Cake\\\\Composer\\\\Installer\\\\PluginInstaller::postAutoloadDump\"\r\n\r\nRemoving the post-install-cmd and deleting all the instance methods in this class since they would then be unused.\r\n\r\nAnd we could also move the plugins file from `config/plugins.php` to `vendors/cakephp-plugins.php` or similar.\r\n\r\n_should_ this code remain in this repo? It could be moved to cakephp's Plugin class if preferred."},"comment":{"url":"https://api.github.com/repos/cakephp/plugin-installer/issues/comments/70413980","html_url":"https://github.com/cakephp/plugin-installer/pull/16#issuecomment-70413980","issue_url":"https://api.github.com/repos/cakephp/plugin-installer/issues/16","id":70413980,"user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T16:13:22Z","updated_at":"2015-01-18T16:13:22Z","body":"There's no way around adding that to the app's composer file?"}}