{"action":"closed","issue":{"url":"https://api.github.com/repos/xp-framework/core/issues/96","labels_url":"https://api.github.com/repos/xp-framework/core/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/xp-framework/core/issues/96/comments","events_url":"https://api.github.com/repos/xp-framework/core/issues/96/events","html_url":"https://github.com/xp-framework/core/issues/96","id":99206340,"number":96,"title":"Endless recursion for overlay module use-case","user":{"login":"thekid","id":696742,"avatar_url":"https://avatars.githubusercontent.com/u/696742?v=3","gravatar_id":"","url":"https://api.github.com/users/thekid","html_url":"https://github.com/thekid","followers_url":"https://api.github.com/users/thekid/followers","following_url":"https://api.github.com/users/thekid/following{/other_user}","gists_url":"https://api.github.com/users/thekid/gists{/gist_id}","starred_url":"https://api.github.com/users/thekid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekid/subscriptions","organizations_url":"https://api.github.com/users/thekid/orgs","repos_url":"https://api.github.com/users/thekid/repos","events_url":"https://api.github.com/users/thekid/events{/privacy}","received_events_url":"https://api.github.com/users/thekid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xp-framework/core/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-05T13:37:47Z","updated_at":"2015-08-05T13:38:56Z","closed_at":"2015-08-05T13:38:56Z","body":"I wanted to create an overlay module - that is, a module registering its class loader in front of the class path in order to overlay core classes:\r\n\r\n### module.xp\r\n```php\r\n<?php namespace unittest\\web;\r\n\r\nuse lang\\ClassLoader;\r\n\r\nmodule xp-framework/webtest {\r\n\r\n  public function initialize() {\r\n    ClassLoader::registerLoader($this->classLoader(), true);\r\n  }\r\n}\r\n```\r\n\r\nThis causes an endless recursion."}}