{"action":"created","issue":{"url":"https://api.github.com/repos/hoaproject/Consistency/issues/7","labels_url":"https://api.github.com/repos/hoaproject/Consistency/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hoaproject/Consistency/issues/7/comments","events_url":"https://api.github.com/repos/hoaproject/Consistency/issues/7/events","html_url":"https://github.com/hoaproject/Consistency/pull/7","id":126616841,"number":7,"title":"Autoloader restrict to mapped prefixes","user":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hoaproject/Consistency/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/hoaproject/Consistency/labels/difficulty:%20medium","name":"difficulty: medium","color":"F0788C"},{"url":"https://api.github.com/repos/hoaproject/Consistency/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-01-14T09:46:38Z","updated_at":"2016-01-14T09:47:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hoaproject/Consistency/pulls/7","html_url":"https://github.com/hoaproject/Consistency/pull/7","diff_url":"https://github.com/hoaproject/Consistency/pull/7.diff","patch_url":"https://github.com/hoaproject/Consistency/pull/7.patch"},"body":"This autoloader respects the PSR-4 recommendation. However, it adds\r\nsupport for flex entities, i.e. if `A\\B\\C` does not exist, then we try\r\nto load `A\\B\\C\\C`. By default, we try this for all kind of entities.\r\nThis is wrong because some autoloaders in the wild can not like it.\r\n\r\nConsequently, we restrict the flex entity algorithm to mapped entities\r\nonly. A new `hasBaseDirectory` method has been created to check if a\r\nnamespace prefix has a base directory registered or not. This method has\r\nbeen extracted from `getBaseDirectories`, nothing fancy here. But this\r\nmethod is used to check whether at least one base directory exists for\r\nan entity. If yes, this is a mapped entity and we can apply the flex\r\nentity algorithm, else, nothing to do: Fail silently and move to the\r\nnext autoloader in the stack."},"comment":{"url":"https://api.github.com/repos/hoaproject/Consistency/issues/comments/171589698","html_url":"https://github.com/hoaproject/Consistency/pull/7#issuecomment-171589698","issue_url":"https://api.github.com/repos/hoaproject/Consistency/issues/7","id":171589698,"user":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T09:47:18Z","updated_at":"2016-01-14T09:47:18Z","body":"@marmotz Please, can you test this patch on your issue and tell me if it's fixed? The test suite is green and the whole Hoa's test suite is green too."}}