{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/2142","labels_url":"https://api.github.com/repos/bolt/bolt/issues/2142/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/2142/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/2142/events","html_url":"https://github.com/bolt/bolt/issues/2142","id":48208786,"number":2142,"title":"[RFE] Including psr0 in our extension autoloading mechanism","user":{"login":"rixbeck","id":761149,"avatar_url":"https://avatars.githubusercontent.com/u/761149?v=3","gravatar_id":"","url":"https://api.github.com/users/rixbeck","html_url":"https://github.com/rixbeck","followers_url":"https://api.github.com/users/rixbeck/followers","following_url":"https://api.github.com/users/rixbeck/following{/other_user}","gists_url":"https://api.github.com/users/rixbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/rixbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rixbeck/subscriptions","organizations_url":"https://api.github.com/users/rixbeck/orgs","repos_url":"https://api.github.com/users/rixbeck/repos","events_url":"https://api.github.com/users/rixbeck/events{/privacy}","received_events_url":"https://api.github.com/users/rixbeck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bolt/bolt/labels/enhancement","name":"enhancement","color":"75B5AA"}],"state":"open","locked":false,"assignee":{"login":"rossriley","id":5082,"avatar_url":"https://avatars.githubusercontent.com/u/5082?v=3","gravatar_id":"","url":"https://api.github.com/users/rossriley","html_url":"https://github.com/rossriley","followers_url":"https://api.github.com/users/rossriley/followers","following_url":"https://api.github.com/users/rossriley/following{/other_user}","gists_url":"https://api.github.com/users/rossriley/gists{/gist_id}","starred_url":"https://api.github.com/users/rossriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossriley/subscriptions","organizations_url":"https://api.github.com/users/rossriley/orgs","repos_url":"https://api.github.com/users/rossriley/repos","events_url":"https://api.github.com/users/rossriley/events{/privacy}","received_events_url":"https://api.github.com/users/rossriley/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bolt/bolt/milestones/18","html_url":"https://github.com/bolt/bolt/milestones/Bolt%202.2%20-%20Feature%20release","labels_url":"https://api.github.com/repos/bolt/bolt/milestones/18/labels","id":956607,"number":18,"title":"Bolt 2.2 - Feature release","description":"","creator":{"login":"GawainLynch","id":1427081,"avatar_url":"https://avatars.githubusercontent.com/u/1427081?v=3","gravatar_id":"","url":"https://api.github.com/users/GawainLynch","html_url":"https://github.com/GawainLynch","followers_url":"https://api.github.com/users/GawainLynch/followers","following_url":"https://api.github.com/users/GawainLynch/following{/other_user}","gists_url":"https://api.github.com/users/GawainLynch/gists{/gist_id}","starred_url":"https://api.github.com/users/GawainLynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GawainLynch/subscriptions","organizations_url":"https://api.github.com/users/GawainLynch/orgs","repos_url":"https://api.github.com/users/GawainLynch/repos","events_url":"https://api.github.com/users/GawainLynch/events{/privacy}","received_events_url":"https://api.github.com/users/GawainLynch/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":16,"state":"open","created_at":"2015-01-29T11:29:45Z","updated_at":"2015-03-15T14:46:17Z","due_on":"2015-03-31T23:00:00Z","closed_at":null},"comments":7,"created_at":"2014-11-09T18:21:29Z","updated_at":"2015-03-16T12:09:40Z","closed_at":null,"body":"Currently we are including `autoload_psr4.php`, `autoload_classmap.php` and `autoload_files.php` in `Extension::autoload()` therefore any extension that has a dependent package that defines psr0 loading, it won't be loaded automatically. As we touched the issue on IRC it worth to be included, moreover it can be simplify the code result too with just fetch `autoload.php`.\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/81611635","html_url":"https://github.com/bolt/bolt/issues/2142#issuecomment-81611635","issue_url":"https://api.github.com/repos/bolt/bolt/issues/2142","id":81611635,"user":{"login":"GawainLynch","id":1427081,"avatar_url":"https://avatars.githubusercontent.com/u/1427081?v=3","gravatar_id":"","url":"https://api.github.com/users/GawainLynch","html_url":"https://github.com/GawainLynch","followers_url":"https://api.github.com/users/GawainLynch/followers","following_url":"https://api.github.com/users/GawainLynch/following{/other_user}","gists_url":"https://api.github.com/users/GawainLynch/gists{/gist_id}","starred_url":"https://api.github.com/users/GawainLynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GawainLynch/subscriptions","organizations_url":"https://api.github.com/users/GawainLynch/orgs","repos_url":"https://api.github.com/users/GawainLynch/repos","events_url":"https://api.github.com/users/GawainLynch/events{/privacy}","received_events_url":"https://api.github.com/users/GawainLynch/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T12:09:40Z","updated_at":"2015-03-16T12:09:40Z","body":"We could probably to just including `extensions/vendor/autoload.php` as a first step. I will solve the PSR-0 loading.\r\n\r\nI like the idea of making the local extensions first class citizens, and looked at it for 2.1 but backed off as my approach was initially to get Composer to build autoloaders for local extensions but at that time we were on Composer alpha9 and it was missing bits.\r\n\r\nThe other side to the coin is that we currently have a tangled web of loading and initialising that @CarsonF and I [hashed over recently](https://github.com/bolt/bolt/wiki/Bolt-2.x-Refactoring#extensions) with the near-breaking changes to the client IP stuff. (#3031 & #3093), that we probably should look at as part of this. But if you think your suggestion covers that approach too: :+1: "}}