{"action":"created","comment":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/comments/77518633","id":77518633,"diff_hunk":"@@ -78,7 +78,7 @@ public function generate(BundleInterface $bundle, $entity, ClassMetadataInfo $me\n \n         $this->generateControllerClass($forceOverwrite);\n \n-        $dir = sprintf('%s/Resources/views/%s', $this->rootDir, str_replace('\\\\', '/', strtolower($this->entity)));\n+        $dir = sprintf('%s/Resources/views/%s', $this->bundle->getPath(), str_replace('\\\\', '/', strtolower($this->entity)));","path":"Generator/DoctrineCrudGenerator.php","position":5,"original_position":5,"commit_id":"39d28b90c6bcf5a23dd99e7d6d68480345677ef4","original_commit_id":"39d28b90c6bcf5a23dd99e7d6d68480345677ef4","user":{"login":"omrqs","id":1513178,"avatar_url":"https://avatars.githubusercontent.com/u/1513178?v=3","gravatar_id":"","url":"https://api.github.com/users/omrqs","html_url":"https://github.com/omrqs","followers_url":"https://api.github.com/users/omrqs/followers","following_url":"https://api.github.com/users/omrqs/following{/other_user}","gists_url":"https://api.github.com/users/omrqs/gists{/gist_id}","starred_url":"https://api.github.com/users/omrqs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omrqs/subscriptions","organizations_url":"https://api.github.com/users/omrqs/orgs","repos_url":"https://api.github.com/users/omrqs/repos","events_url":"https://api.github.com/users/omrqs/events{/privacy}","received_events_url":"https://api.github.com/users/omrqs/received_events","type":"User","site_admin":false},"body":"I was suggested this:\r\n$dir = sprintf('%s/Resources/views/%s', $this->bundle->getPath(), str_replace('\\\\', '/', ucfirst($this->entity)));","created_at":"2016-09-05T13:02:32Z","updated_at":"2016-09-05T13:02:32Z","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/489#discussion_r77518633","pull_request_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489","_links":{"self":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/comments/77518633"},"html":{"href":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/489#discussion_r77518633"},"pull_request":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489"}}},"pull_request":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489","id":66665904,"html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/489","diff_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/489.diff","patch_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/489.patch","issue_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/489","number":489,"state":"open","locked":false,"title":"resources views root path replace bundle path","user":{"login":"gonzakpo","id":1031176,"avatar_url":"https://avatars.githubusercontent.com/u/1031176?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzakpo","html_url":"https://github.com/gonzakpo","followers_url":"https://api.github.com/users/gonzakpo/followers","following_url":"https://api.github.com/users/gonzakpo/following{/other_user}","gists_url":"https://api.github.com/users/gonzakpo/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzakpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzakpo/subscriptions","organizations_url":"https://api.github.com/users/gonzakpo/orgs","repos_url":"https://api.github.com/users/gonzakpo/repos","events_url":"https://api.github.com/users/gonzakpo/events{/privacy}","received_events_url":"https://api.github.com/users/gonzakpo/received_events","type":"User","site_admin":false},"body":"$this->rootDir change $this->bundle->getPath()","created_at":"2016-04-15T16:01:02Z","updated_at":"2016-09-05T13:02:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b4593e2c01ae667fbd917acdf00078dc2cc3cf1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489/commits","review_comments_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489/comments","review_comment_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/489/comments","statuses_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/statuses/39d28b90c6bcf5a23dd99e7d6d68480345677ef4","head":{"label":"gonzakpo:master","ref":"master","sha":"39d28b90c6bcf5a23dd99e7d6d68480345677ef4","user":{"login":"gonzakpo","id":1031176,"avatar_url":"https://avatars.githubusercontent.com/u/1031176?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzakpo","html_url":"https://github.com/gonzakpo","followers_url":"https://api.github.com/users/gonzakpo/followers","following_url":"https://api.github.com/users/gonzakpo/following{/other_user}","gists_url":"https://api.github.com/users/gonzakpo/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzakpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzakpo/subscriptions","organizations_url":"https://api.github.com/users/gonzakpo/orgs","repos_url":"https://api.github.com/users/gonzakpo/repos","events_url":"https://api.github.com/users/gonzakpo/events{/privacy}","received_events_url":"https://api.github.com/users/gonzakpo/received_events","type":"User","site_admin":false},"repo":{"id":56332078,"name":"SensioGeneratorBundle","full_name":"gonzakpo/SensioGeneratorBundle","owner":{"login":"gonzakpo","id":1031176,"avatar_url":"https://avatars.githubusercontent.com/u/1031176?v=3","gravatar_id":"","url":"https://api.github.com/users/gonzakpo","html_url":"https://github.com/gonzakpo","followers_url":"https://api.github.com/users/gonzakpo/followers","following_url":"https://api.github.com/users/gonzakpo/following{/other_user}","gists_url":"https://api.github.com/users/gonzakpo/gists{/gist_id}","starred_url":"https://api.github.com/users/gonzakpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonzakpo/subscriptions","organizations_url":"https://api.github.com/users/gonzakpo/orgs","repos_url":"https://api.github.com/users/gonzakpo/repos","events_url":"https://api.github.com/users/gonzakpo/events{/privacy}","received_events_url":"https://api.github.com/users/gonzakpo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gonzakpo/SensioGeneratorBundle","description":"Generates Symfony2 bundles, entities, forms, CRUD, and more...","fork":true,"url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle","forks_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/forks","keys_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/teams","hooks_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/hooks","issue_events_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/issues/events{/number}","events_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/events","assignees_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/assignees{/user}","branches_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/branches{/branch}","tags_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/tags","blobs_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/languages","stargazers_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/stargazers","contributors_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/contributors","subscribers_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/subscribers","subscription_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/subscription","commits_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/contents/{+path}","compare_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/merges","archive_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/downloads","issues_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/issues{/number}","pulls_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/labels{/name}","releases_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/releases{/id}","deployments_url":"https://api.github.com/repos/gonzakpo/SensioGeneratorBundle/deployments","created_at":"2016-04-15T15:53:14Z","updated_at":"2016-04-15T15:53:15Z","pushed_at":"2016-04-15T15:57:10Z","git_url":"git://github.com/gonzakpo/SensioGeneratorBundle.git","ssh_url":"git@github.com:gonzakpo/SensioGeneratorBundle.git","clone_url":"https://github.com/gonzakpo/SensioGeneratorBundle.git","svn_url":"https://github.com/gonzakpo/SensioGeneratorBundle","homepage":"symfony.com","size":666,"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":"sensiolabs:master","ref":"master","sha":"b06dd463f6451e5359c8975292011237ec5ee1a0","user":{"login":"sensiolabs","id":1780787,"avatar_url":"https://avatars.githubusercontent.com/u/1780787?v=3","gravatar_id":"","url":"https://api.github.com/users/sensiolabs","html_url":"https://github.com/sensiolabs","followers_url":"https://api.github.com/users/sensiolabs/followers","following_url":"https://api.github.com/users/sensiolabs/following{/other_user}","gists_url":"https://api.github.com/users/sensiolabs/gists{/gist_id}","starred_url":"https://api.github.com/users/sensiolabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensiolabs/subscriptions","organizations_url":"https://api.github.com/users/sensiolabs/orgs","repos_url":"https://api.github.com/users/sensiolabs/repos","events_url":"https://api.github.com/users/sensiolabs/events{/privacy}","received_events_url":"https://api.github.com/users/sensiolabs/received_events","type":"Organization","site_admin":false},"repo":{"id":1826487,"name":"SensioGeneratorBundle","full_name":"sensiolabs/SensioGeneratorBundle","owner":{"login":"sensiolabs","id":1780787,"avatar_url":"https://avatars.githubusercontent.com/u/1780787?v=3","gravatar_id":"","url":"https://api.github.com/users/sensiolabs","html_url":"https://github.com/sensiolabs","followers_url":"https://api.github.com/users/sensiolabs/followers","following_url":"https://api.github.com/users/sensiolabs/following{/other_user}","gists_url":"https://api.github.com/users/sensiolabs/gists{/gist_id}","starred_url":"https://api.github.com/users/sensiolabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensiolabs/subscriptions","organizations_url":"https://api.github.com/users/sensiolabs/orgs","repos_url":"https://api.github.com/users/sensiolabs/repos","events_url":"https://api.github.com/users/sensiolabs/events{/privacy}","received_events_url":"https://api.github.com/users/sensiolabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sensiolabs/SensioGeneratorBundle","description":"Generates Symfony bundles, entities, forms, CRUD, and more...","fork":false,"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle","forks_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/forks","keys_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/teams","hooks_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/hooks","issue_events_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/events","assignees_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/tags","blobs_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/languages","stargazers_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/stargazers","contributors_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/contributors","subscribers_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/subscribers","subscription_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/subscription","commits_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/merges","archive_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/downloads","issues_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/labels{/name}","releases_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/releases{/id}","deployments_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/deployments","created_at":"2011-05-31T13:54:51Z","updated_at":"2016-07-14T10:07:37Z","pushed_at":"2016-09-05T06:42:44Z","git_url":"git://github.com/sensiolabs/SensioGeneratorBundle.git","ssh_url":"git@github.com:sensiolabs/SensioGeneratorBundle.git","clone_url":"https://github.com/sensiolabs/SensioGeneratorBundle.git","svn_url":"https://github.com/sensiolabs/SensioGeneratorBundle","homepage":"https://symfony.com","size":1516,"stargazers_count":259,"watchers_count":259,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":269,"mirror_url":null,"open_issues_count":31,"forks":269,"open_issues":31,"watchers":259,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489"},"html":{"href":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/489"},"issue":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/489"},"comments":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/489/comments"},"review_comments":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489/comments"},"review_comment":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/489/commits"},"statuses":{"href":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/statuses/39d28b90c6bcf5a23dd99e7d6d68480345677ef4"}}}}
{"actor":{"display_login":"omrqs"}}