{"action":"created","comment":{"url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments/44202416","id":44202416,"diff_hunk":"@@ -762,18 +771,19 @@ protected function getServiceBoundManagers(Nette\\DI\\ServiceDefinition $def)\n \n \tpublic function afterCompile(Code\\ClassType $class)\n \t{\n-\t\t$init = $class->methods['initialize'];\n-\n-\t\t$init->addBody('Kdyby\\Doctrine\\Diagnostics\\Panel::registerBluescreen($this);');\n-\n-\t\tif (property_exists('Tracy\\BlueScreen', 'collapsePaths')) {\n-\t\t\t$blueScreen = 'Tracy\\Debugger::getBlueScreen()';\n-\t\t\t$commonDirname = dirname(Nette\\Reflection\\ClassType::from('Doctrine\\Common\\Version')->getFileName());\n-\n-\t\t\t$init->addBody($blueScreen . '->collapsePaths[] = ?;', array(dirname(Nette\\Reflection\\ClassType::from('Kdyby\\Doctrine\\Exception')->getFileName())));\n-\t\t\t$init->addBody($blueScreen . '->collapsePaths[] = ?;', array(dirname(dirname(dirname(dirname($commonDirname)))))); // this should be vendor/doctrine\n-\t\t\tforeach ($this->proxyAutoloaders as $dir) {\n-\t\t\t\t$init->addBody($blueScreen . '->collapsePaths[] = ?;', array($dir));\n+\t\tif (interface_exists('Tracy\\IBarPanel')) {","path":"src/Kdyby/Doctrine/DI/OrmExtension.php","position":73,"original_position":73,"commit_id":"b439465e58900a817a3237d37d397b7a3dc10b9b","original_commit_id":"b439465e58900a817a3237d37d397b7a3dc10b9b","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"body":"Do you mean sth like?\r\n\r\n```php\r\nprivate function isTracyPresent()\r\n{\r\n    return interface_exists('Tracy\\IBarPanel');\r\n}\r\n```","created_at":"2015-11-07T00:26:47Z","updated_at":"2015-11-07T00:26:47Z","html_url":"https://github.com/Kdyby/Doctrine/pull/220#discussion_r44202416","pull_request_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220","_links":{"self":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments/44202416"},"html":{"href":"https://github.com/Kdyby/Doctrine/pull/220#discussion_r44202416"},"pull_request":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220"}}},"pull_request":{"url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220","id":50019394,"html_url":"https://github.com/Kdyby/Doctrine/pull/220","diff_url":"https://github.com/Kdyby/Doctrine/pull/220.diff","patch_url":"https://github.com/Kdyby/Doctrine/pull/220.patch","issue_url":"https://api.github.com/repos/Kdyby/Doctrine/issues/220","number":220,"state":"open","locked":false,"title":"Make tracy optional","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"body":"Ref #218","created_at":"2015-11-06T23:54:31Z","updated_at":"2015-11-07T00:26:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2251f636cc606e8707252c55cf3d0837f9233d81","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220/commits","review_comments_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220/comments","review_comment_url":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kdyby/Doctrine/issues/220/comments","statuses_url":"https://api.github.com/repos/Kdyby/Doctrine/statuses/b439465e58900a817a3237d37d397b7a3dc10b9b","head":{"label":"TomasVotruba:tracy-optional","ref":"tracy-optional","sha":"b439465e58900a817a3237d37d397b7a3dc10b9b","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"repo":{"id":45452069,"name":"Doctrine","full_name":"TomasVotruba/Doctrine","owner":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TomasVotruba/Doctrine","description":"Doctrine 2 ORM integration into Nette Framework","fork":true,"url":"https://api.github.com/repos/TomasVotruba/Doctrine","forks_url":"https://api.github.com/repos/TomasVotruba/Doctrine/forks","keys_url":"https://api.github.com/repos/TomasVotruba/Doctrine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TomasVotruba/Doctrine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TomasVotruba/Doctrine/teams","hooks_url":"https://api.github.com/repos/TomasVotruba/Doctrine/hooks","issue_events_url":"https://api.github.com/repos/TomasVotruba/Doctrine/issues/events{/number}","events_url":"https://api.github.com/repos/TomasVotruba/Doctrine/events","assignees_url":"https://api.github.com/repos/TomasVotruba/Doctrine/assignees{/user}","branches_url":"https://api.github.com/repos/TomasVotruba/Doctrine/branches{/branch}","tags_url":"https://api.github.com/repos/TomasVotruba/Doctrine/tags","blobs_url":"https://api.github.com/repos/TomasVotruba/Doctrine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TomasVotruba/Doctrine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TomasVotruba/Doctrine/git/refs{/sha}","trees_url":"https://api.github.com/repos/TomasVotruba/Doctrine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TomasVotruba/Doctrine/statuses/{sha}","languages_url":"https://api.github.com/repos/TomasVotruba/Doctrine/languages","stargazers_url":"https://api.github.com/repos/TomasVotruba/Doctrine/stargazers","contributors_url":"https://api.github.com/repos/TomasVotruba/Doctrine/contributors","subscribers_url":"https://api.github.com/repos/TomasVotruba/Doctrine/subscribers","subscription_url":"https://api.github.com/repos/TomasVotruba/Doctrine/subscription","commits_url":"https://api.github.com/repos/TomasVotruba/Doctrine/commits{/sha}","git_commits_url":"https://api.github.com/repos/TomasVotruba/Doctrine/git/commits{/sha}","comments_url":"https://api.github.com/repos/TomasVotruba/Doctrine/comments{/number}","issue_comment_url":"https://api.github.com/repos/TomasVotruba/Doctrine/issues/comments{/number}","contents_url":"https://api.github.com/repos/TomasVotruba/Doctrine/contents/{+path}","compare_url":"https://api.github.com/repos/TomasVotruba/Doctrine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TomasVotruba/Doctrine/merges","archive_url":"https://api.github.com/repos/TomasVotruba/Doctrine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TomasVotruba/Doctrine/downloads","issues_url":"https://api.github.com/repos/TomasVotruba/Doctrine/issues{/number}","pulls_url":"https://api.github.com/repos/TomasVotruba/Doctrine/pulls{/number}","milestones_url":"https://api.github.com/repos/TomasVotruba/Doctrine/milestones{/number}","notifications_url":"https://api.github.com/repos/TomasVotruba/Doctrine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TomasVotruba/Doctrine/labels{/name}","releases_url":"https://api.github.com/repos/TomasVotruba/Doctrine/releases{/id}","created_at":"2015-11-03T08:25:19Z","updated_at":"2015-11-03T08:25:20Z","pushed_at":"2015-11-06T23:56:46Z","git_url":"git://github.com/TomasVotruba/Doctrine.git","ssh_url":"git@github.com:TomasVotruba/Doctrine.git","clone_url":"https://github.com/TomasVotruba/Doctrine.git","svn_url":"https://github.com/TomasVotruba/Doctrine","homepage":"https://packagist.org/packages/kdyby/doctrine","size":3655,"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":"7732e5fd922d82081194839a4daf09e2272118d1","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-11-06T09:32:16Z","pushed_at":"2015-11-06T23:56:46Z","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":3655,"stargazers_count":71,"watchers_count":71,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":42,"forks":49,"open_issues":42,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220"},"html":{"href":"https://github.com/Kdyby/Doctrine/pull/220"},"issue":{"href":"https://api.github.com/repos/Kdyby/Doctrine/issues/220"},"comments":{"href":"https://api.github.com/repos/Kdyby/Doctrine/issues/220/comments"},"review_comments":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220/comments"},"review_comment":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kdyby/Doctrine/pulls/220/commits"},"statuses":{"href":"https://api.github.com/repos/Kdyby/Doctrine/statuses/b439465e58900a817a3237d37d397b7a3dc10b9b"}}}}