{"action":"created","comment":{"url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments/25760705","id":25760705,"diff_hunk":"@@ -51,6 +51,20 @@ public function __construct($proxyDir, $proxyNamespace)\n \n \n \t/**\n+\t * Returns an array of events this subscriber wants to listen to.\n+\t *\n+\t * @return array\n+\t */\n+\tpublic function getSubscribedEvents()\n+\t{\n+\t\treturn array(\n+\t\t\t'Nette\\DI\\Container::onInitialize' => 'register',","path":"src/Kdyby/Doctrine/Proxy/ProxyAutoloader.php","position":20,"original_position":20,"commit_id":"8e7b89d8d11835a632a675d7cd554462efcc52ef","original_commit_id":"8e7b89d8d11835a632a675d7cd554462efcc52ef","user":{"login":"fprochazka","id":158625,"avatar_url":"https://avatars.githubusercontent.com/u/158625?v=3","gravatar_id":"","url":"https://api.github.com/users/fprochazka","html_url":"https://github.com/fprochazka","followers_url":"https://api.github.com/users/fprochazka/followers","following_url":"https://api.github.com/users/fprochazka/following{/other_user}","gists_url":"https://api.github.com/users/fprochazka/gists{/gist_id}","starred_url":"https://api.github.com/users/fprochazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fprochazka/subscriptions","organizations_url":"https://api.github.com/users/fprochazka/orgs","repos_url":"https://api.github.com/users/fprochazka/repos","events_url":"https://api.github.com/users/fprochazka/events{/privacy}","received_events_url":"https://api.github.com/users/fprochazka/received_events","type":"User","site_admin":false},"body":"onInitialize is called like this\r\n\r\n```php\r\n$this->getService('events.manager')->createEvent(array('Nette\\\\DI\\\\Container', 'onInitialize'))->dispatch($this);\r\n```\r\n\r\nthat means the `$prepend` will be evaluated to TRUE. I'm not sure if that's desired.","created_at":"2015-03-04T09:14:28Z","updated_at":"2015-03-04T09:14:28Z","html_url":"https://github.com/Kdyby/Doctrine/pull/167#discussion_r25760705","pull_request_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments/25760705"},"html":{"href":"https://github.com/Kdyby/Doctrine/pull/167#discussion_r25760705"},"pull_request":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167","id":30223166,"html_url":"https://github.com/Kdyby/Doctrine/pull/167","diff_url":"https://github.com/Kdyby/Doctrine/pull/167.diff","patch_url":"https://github.com/Kdyby/Doctrine/pull/167.patch","issue_url":"https://api.github.com/repos/Kdyby/Doctrine/issues/167","number":167,"state":"open","locked":false,"title":"Added ProxyAutoloaderListener","user":{"login":"enumag","id":539462,"avatar_url":"https://avatars.githubusercontent.com/u/539462?v=3","gravatar_id":"","url":"https://api.github.com/users/enumag","html_url":"https://github.com/enumag","followers_url":"https://api.github.com/users/enumag/followers","following_url":"https://api.github.com/users/enumag/following{/other_user}","gists_url":"https://api.github.com/users/enumag/gists{/gist_id}","starred_url":"https://api.github.com/users/enumag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enumag/subscriptions","organizations_url":"https://api.github.com/users/enumag/orgs","repos_url":"https://api.github.com/users/enumag/repos","events_url":"https://api.github.com/users/enumag/events{/privacy}","received_events_url":"https://api.github.com/users/enumag/received_events","type":"User","site_admin":false},"body":"I'm trying to solve https://help.kdyby.org/question/?questionId=373.\r\n","created_at":"2015-02-28T11:32:41Z","updated_at":"2015-03-04T09:14:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6eb786e9883d80572d7ae5dc8059b4c9b76420bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167/commits","review_comments_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167/comments","review_comment_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kdyby/Doctrine/issues/167/comments","statuses_url":"https://api.github.com/repos/Kdyby/Doctrine/statuses/8e7b89d8d11835a632a675d7cd554462efcc52ef","head":{"label":"enumag:proxy","ref":"proxy","sha":"8e7b89d8d11835a632a675d7cd554462efcc52ef","user":{"login":"enumag","id":539462,"avatar_url":"https://avatars.githubusercontent.com/u/539462?v=3","gravatar_id":"","url":"https://api.github.com/users/enumag","html_url":"https://github.com/enumag","followers_url":"https://api.github.com/users/enumag/followers","following_url":"https://api.github.com/users/enumag/following{/other_user}","gists_url":"https://api.github.com/users/enumag/gists{/gist_id}","starred_url":"https://api.github.com/users/enumag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enumag/subscriptions","organizations_url":"https://api.github.com/users/enumag/orgs","repos_url":"https://api.github.com/users/enumag/repos","events_url":"https://api.github.com/users/enumag/events{/privacy}","received_events_url":"https://api.github.com/users/enumag/received_events","type":"User","site_admin":false},"repo":{"id":10887992,"name":"Doctrine","full_name":"enumag/Doctrine","owner":{"login":"enumag","id":539462,"avatar_url":"https://avatars.githubusercontent.com/u/539462?v=3","gravatar_id":"","url":"https://api.github.com/users/enumag","html_url":"https://github.com/enumag","followers_url":"https://api.github.com/users/enumag/followers","following_url":"https://api.github.com/users/enumag/following{/other_user}","gists_url":"https://api.github.com/users/enumag/gists{/gist_id}","starred_url":"https://api.github.com/users/enumag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enumag/subscriptions","organizations_url":"https://api.github.com/users/enumag/orgs","repos_url":"https://api.github.com/users/enumag/repos","events_url":"https://api.github.com/users/enumag/events{/privacy}","received_events_url":"https://api.github.com/users/enumag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enumag/Doctrine","description":"Doctrine 2 ORM integration into Nette Framework","fork":true,"url":"https://api.github.com/repos/enumag/Doctrine","forks_url":"https://api.github.com/repos/enumag/Doctrine/forks","keys_url":"https://api.github.com/repos/enumag/Doctrine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enumag/Doctrine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enumag/Doctrine/teams","hooks_url":"https://api.github.com/repos/enumag/Doctrine/hooks","issue_events_url":"https://api.github.com/repos/enumag/Doctrine/issues/events{/number}","events_url":"https://api.github.com/repos/enumag/Doctrine/events","assignees_url":"https://api.github.com/repos/enumag/Doctrine/assignees{/user}","branches_url":"https://api.github.com/repos/enumag/Doctrine/branches{/branch}","tags_url":"https://api.github.com/repos/enumag/Doctrine/tags","blobs_url":"https://api.github.com/repos/enumag/Doctrine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enumag/Doctrine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enumag/Doctrine/git/refs{/sha}","trees_url":"https://api.github.com/repos/enumag/Doctrine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enumag/Doctrine/statuses/{sha}","languages_url":"https://api.github.com/repos/enumag/Doctrine/languages","stargazers_url":"https://api.github.com/repos/enumag/Doctrine/stargazers","contributors_url":"https://api.github.com/repos/enumag/Doctrine/contributors","subscribers_url":"https://api.github.com/repos/enumag/Doctrine/subscribers","subscription_url":"https://api.github.com/repos/enumag/Doctrine/subscription","commits_url":"https://api.github.com/repos/enumag/Doctrine/commits{/sha}","git_commits_url":"https://api.github.com/repos/enumag/Doctrine/git/commits{/sha}","comments_url":"https://api.github.com/repos/enumag/Doctrine/comments{/number}","issue_comment_url":"https://api.github.com/repos/enumag/Doctrine/issues/comments{/number}","contents_url":"https://api.github.com/repos/enumag/Doctrine/contents/{+path}","compare_url":"https://api.github.com/repos/enumag/Doctrine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enumag/Doctrine/merges","archive_url":"https://api.github.com/repos/enumag/Doctrine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enumag/Doctrine/downloads","issues_url":"https://api.github.com/repos/enumag/Doctrine/issues{/number}","pulls_url":"https://api.github.com/repos/enumag/Doctrine/pulls{/number}","milestones_url":"https://api.github.com/repos/enumag/Doctrine/milestones{/number}","notifications_url":"https://api.github.com/repos/enumag/Doctrine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enumag/Doctrine/labels{/name}","releases_url":"https://api.github.com/repos/enumag/Doctrine/releases{/id}","created_at":"2013-06-23T16:38:26Z","updated_at":"2014-07-05T17:22:06Z","pushed_at":"2015-03-04T09:07:07Z","git_url":"git://github.com/enumag/Doctrine.git","ssh_url":"git@github.com:enumag/Doctrine.git","clone_url":"https://github.com/enumag/Doctrine.git","svn_url":"https://github.com/enumag/Doctrine","homepage":"https://packagist.org/packages/kdyby/doctrine","size":1076,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Kdyby:master","ref":"master","sha":"90c46e1e2c629c689eb48b2dac744a09efae6c9e","user":{"login":"Kdyby","id":615853,"avatar_url":"https://avatars.githubusercontent.com/u/615853?v=3","gravatar_id":"","url":"https://api.github.com/users/Kdyby","html_url":"https://github.com/Kdyby","followers_url":"https://api.github.com/users/Kdyby/followers","following_url":"https://api.github.com/users/Kdyby/following{/other_user}","gists_url":"https://api.github.com/users/Kdyby/gists{/gist_id}","starred_url":"https://api.github.com/users/Kdyby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kdyby/subscriptions","organizations_url":"https://api.github.com/users/Kdyby/orgs","repos_url":"https://api.github.com/users/Kdyby/repos","events_url":"https://api.github.com/users/Kdyby/events{/privacy}","received_events_url":"https://api.github.com/users/Kdyby/received_events","type":"Organization","site_admin":false},"repo":{"id":7663907,"name":"Doctrine","full_name":"Kdyby/Doctrine","owner":{"login":"Kdyby","id":615853,"avatar_url":"https://avatars.githubusercontent.com/u/615853?v=3","gravatar_id":"","url":"https://api.github.com/users/Kdyby","html_url":"https://github.com/Kdyby","followers_url":"https://api.github.com/users/Kdyby/followers","following_url":"https://api.github.com/users/Kdyby/following{/other_user}","gists_url":"https://api.github.com/users/Kdyby/gists{/gist_id}","starred_url":"https://api.github.com/users/Kdyby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kdyby/subscriptions","organizations_url":"https://api.github.com/users/Kdyby/orgs","repos_url":"https://api.github.com/users/Kdyby/repos","events_url":"https://api.github.com/users/Kdyby/events{/privacy}","received_events_url":"https://api.github.com/users/Kdyby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kdyby/Doctrine","description":"Doctrine 2 ORM integration into Nette Framework","fork":false,"url":"https://api.github.com/repos/Kdyby/Doctrine","forks_url":"https://api.github.com/repos/Kdyby/Doctrine/forks","keys_url":"https://api.github.com/repos/Kdyby/Doctrine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kdyby/Doctrine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kdyby/Doctrine/teams","hooks_url":"https://api.github.com/repos/Kdyby/Doctrine/hooks","issue_events_url":"https://api.github.com/repos/Kdyby/Doctrine/issues/events{/number}","events_url":"https://api.github.com/repos/Kdyby/Doctrine/events","assignees_url":"https://api.github.com/repos/Kdyby/Doctrine/assignees{/user}","branches_url":"https://api.github.com/repos/Kdyby/Doctrine/branches{/branch}","tags_url":"https://api.github.com/repos/Kdyby/Doctrine/tags","blobs_url":"https://api.github.com/repos/Kdyby/Doctrine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kdyby/Doctrine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kdyby/Doctrine/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kdyby/Doctrine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kdyby/Doctrine/statuses/{sha}","languages_url":"https://api.github.com/repos/Kdyby/Doctrine/languages","stargazers_url":"https://api.github.com/repos/Kdyby/Doctrine/stargazers","contributors_url":"https://api.github.com/repos/Kdyby/Doctrine/contributors","subscribers_url":"https://api.github.com/repos/Kdyby/Doctrine/subscribers","subscription_url":"https://api.github.com/repos/Kdyby/Doctrine/subscription","commits_url":"https://api.github.com/repos/Kdyby/Doctrine/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kdyby/Doctrine/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kdyby/Doctrine/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kdyby/Doctrine/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kdyby/Doctrine/contents/{+path}","compare_url":"https://api.github.com/repos/Kdyby/Doctrine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kdyby/Doctrine/merges","archive_url":"https://api.github.com/repos/Kdyby/Doctrine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kdyby/Doctrine/downloads","issues_url":"https://api.github.com/repos/Kdyby/Doctrine/issues{/number}","pulls_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls{/number}","milestones_url":"https://api.github.com/repos/Kdyby/Doctrine/milestones{/number}","notifications_url":"https://api.github.com/repos/Kdyby/Doctrine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kdyby/Doctrine/labels{/name}","releases_url":"https://api.github.com/repos/Kdyby/Doctrine/releases{/id}","created_at":"2013-01-17T10:06:33Z","updated_at":"2015-02-22T22:25:31Z","pushed_at":"2015-02-22T22:25:30Z","git_url":"git://github.com/Kdyby/Doctrine.git","ssh_url":"git@github.com:Kdyby/Doctrine.git","clone_url":"https://github.com/Kdyby/Doctrine.git","svn_url":"https://github.com/Kdyby/Doctrine","homepage":"https://packagist.org/packages/kdyby/doctrine","size":3401,"stargazers_count":46,"watchers_count":46,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":30,"forks":36,"open_issues":30,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167"},"html":{"href":"https://github.com/Kdyby/Doctrine/pull/167"},"issue":{"href":"https://api.github.com/repos/Kdyby/Doctrine/issues/167"},"comments":{"href":"https://api.github.com/repos/Kdyby/Doctrine/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/Kdyby/Doctrine/statuses/8e7b89d8d11835a632a675d7cd554462efcc52ef"}}}}