{"action":"created","issue":{"url":"https://api.github.com/repos/pods-framework/pods/issues/2722","labels_url":"https://api.github.com/repos/pods-framework/pods/issues/2722/labels{/name}","comments_url":"https://api.github.com/repos/pods-framework/pods/issues/2722/comments","events_url":"https://api.github.com/repos/pods-framework/pods/issues/2722/events","html_url":"https://github.com/pods-framework/pods/pull/2722","id":57422210,"number":2722,"title":"Make sure autoloader doesn't load the same class more than once","user":{"login":"jamesgol","id":6788517,"avatar_url":"https://avatars.githubusercontent.com/u/6788517?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesgol","html_url":"https://github.com/jamesgol","followers_url":"https://api.github.com/users/jamesgol/followers","following_url":"https://api.github.com/users/jamesgol/following{/other_user}","gists_url":"https://api.github.com/users/jamesgol/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesgol/subscriptions","organizations_url":"https://api.github.com/users/jamesgol/orgs","repos_url":"https://api.github.com/users/jamesgol/repos","events_url":"https://api.github.com/users/jamesgol/events{/privacy}","received_events_url":"https://api.github.com/users/jamesgol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jamesgol","id":6788517,"avatar_url":"https://avatars.githubusercontent.com/u/6788517?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesgol","html_url":"https://github.com/jamesgol","followers_url":"https://api.github.com/users/jamesgol/followers","following_url":"https://api.github.com/users/jamesgol/following{/other_user}","gists_url":"https://api.github.com/users/jamesgol/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesgol/subscriptions","organizations_url":"https://api.github.com/users/jamesgol/orgs","repos_url":"https://api.github.com/users/jamesgol/repos","events_url":"https://api.github.com/users/jamesgol/events{/privacy}","received_events_url":"https://api.github.com/users/jamesgol/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pods-framework/pods/milestones/26","labels_url":"https://api.github.com/repos/pods-framework/pods/milestones/26/labels","id":239384,"number":26,"title":"Pods 3.0","description":"","creator":{"login":"sc0ttkclark","id":709662,"avatar_url":"https://avatars.githubusercontent.com/u/709662?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false},"open_issues":73,"closed_issues":289,"state":"open","created_at":"2013-01-06T17:40:38Z","updated_at":"2015-02-12T07:34:06Z","due_on":"2015-02-15T06:00:00Z","closed_at":null},"comments":2,"created_at":"2015-02-12T06:22:56Z","updated_at":"2015-02-12T07:34:14Z","closed_at":"2015-02-12T07:34:06Z","pull_request":{"url":"https://api.github.com/repos/pods-framework/pods/pulls/2722","html_url":"https://github.com/pods-framework/pods/pull/2722","diff_url":"https://github.com/pods-framework/pods/pull/2722.diff","patch_url":"https://github.com/pods-framework/pods/pull/2722.patch"},"body":"Two distinct but related issues here.  First the code would try to alias classes more than once which caused php to complain that the class already existed.  Second the autoloader would try to 'require' files more than once which caused php to complain.\r\n\r\nFixes #2721"},"comment":{"url":"https://api.github.com/repos/pods-framework/pods/issues/comments/74029176","html_url":"https://github.com/pods-framework/pods/pull/2722#issuecomment-74029176","issue_url":"https://api.github.com/repos/pods-framework/pods/issues/2722","id":74029176,"user":{"login":"jamesgol","id":6788517,"avatar_url":"https://avatars.githubusercontent.com/u/6788517?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesgol","html_url":"https://github.com/jamesgol","followers_url":"https://api.github.com/users/jamesgol/followers","following_url":"https://api.github.com/users/jamesgol/following{/other_user}","gists_url":"https://api.github.com/users/jamesgol/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesgol/subscriptions","organizations_url":"https://api.github.com/users/jamesgol/orgs","repos_url":"https://api.github.com/users/jamesgol/repos","events_url":"https://api.github.com/users/jamesgol/events{/privacy}","received_events_url":"https://api.github.com/users/jamesgol/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T07:34:14Z","updated_at":"2015-02-12T07:34:14Z","body":"From @unknownnf:  require was used for simplicity, but in the case of aliases it should have been require_once aliases were added after the autoloader. It's still PSR-0 either way. Ideally the class loader would not be called for a class that has already been loaded.\r\n\r\nSo I'm going to merge this."}}