{"action":"created","comment":{"url":"https://api.github.com/repos/poledev/kevin/pulls/comments/44639087","id":44639087,"diff_hunk":"@@ -28,7 +30,33 @@ public function indexAction(Request $request)\n      */\n     public function postAction(Request $request)\n     {\n-        return array();\n+        $job = new Job();\n+        $form = $this->createForm(new JobType(), $job);\n+\n+        $form->handleRequest($request);\n+        if ($form->isValid()) {\n+            return $this->saveJob($job);\n+        }\n+\n+        return array('form' => $form->createView());\n+    }\n+\n+\n+    /**\n+     * @param Job $job\n+     * @return \\Symfony\\Component\\HttpFoundation\\RedirectResponse\n+     */\n+    private function saveJob(Job $job)","path":"src/SensioLabs/JobBoardBundle/Controller/BaseController.php","position":30,"original_position":30,"commit_id":"3ab90caee4cb8ec69345aea818b1980f06f6b98b","original_commit_id":"3ab90caee4cb8ec69345aea818b1980f06f6b98b","user":{"login":"mmarchois","id":2683379,"avatar_url":"https://avatars.githubusercontent.com/u/2683379?v=3","gravatar_id":"","url":"https://api.github.com/users/mmarchois","html_url":"https://github.com/mmarchois","followers_url":"https://api.github.com/users/mmarchois/followers","following_url":"https://api.github.com/users/mmarchois/following{/other_user}","gists_url":"https://api.github.com/users/mmarchois/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarchois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarchois/subscriptions","organizations_url":"https://api.github.com/users/mmarchois/orgs","repos_url":"https://api.github.com/users/mmarchois/repos","events_url":"https://api.github.com/users/mmarchois/events{/privacy}","received_events_url":"https://api.github.com/users/mmarchois/received_events","type":"User","site_admin":false},"body":"Is this method useful ? Do not create private method in a controller but use a manager if is necessary.","created_at":"2015-11-12T10:02:32Z","updated_at":"2015-11-12T10:02:32Z","html_url":"https://github.com/poledev/kevin/pull/22#discussion_r44639087","pull_request_url":"https://api.github.com/repos/poledev/kevin/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/poledev/kevin/pulls/comments/44639087"},"html":{"href":"https://github.com/poledev/kevin/pull/22#discussion_r44639087"},"pull_request":{"href":"https://api.github.com/repos/poledev/kevin/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/poledev/kevin/pulls/22","id":50487028,"html_url":"https://github.com/poledev/kevin/pull/22","diff_url":"https://github.com/poledev/kevin/pull/22.diff","patch_url":"https://github.com/poledev/kevin/pull/22.patch","issue_url":"https://api.github.com/repos/poledev/kevin/issues/22","number":22,"state":"open","locked":false,"title":"01 create an anouncement","user":{"login":"kevin-verschaeve","id":2345927,"avatar_url":"https://avatars.githubusercontent.com/u/2345927?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-verschaeve","html_url":"https://github.com/kevin-verschaeve","followers_url":"https://api.github.com/users/kevin-verschaeve/followers","following_url":"https://api.github.com/users/kevin-verschaeve/following{/other_user}","gists_url":"https://api.github.com/users/kevin-verschaeve/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-verschaeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-verschaeve/subscriptions","organizations_url":"https://api.github.com/users/kevin-verschaeve/orgs","repos_url":"https://api.github.com/users/kevin-verschaeve/repos","events_url":"https://api.github.com/users/kevin-verschaeve/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-verschaeve/received_events","type":"User","site_admin":false},"body":"https://github.com/poledev/kevin/issues/19","created_at":"2015-11-12T09:14:04Z","updated_at":"2015-11-12T10:02:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poledev/kevin/pulls/22/commits","review_comments_url":"https://api.github.com/repos/poledev/kevin/pulls/22/comments","review_comment_url":"https://api.github.com/repos/poledev/kevin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poledev/kevin/issues/22/comments","statuses_url":"https://api.github.com/repos/poledev/kevin/statuses/3ab90caee4cb8ec69345aea818b1980f06f6b98b","head":{"label":"poledev:feature/issue-01","ref":"feature/issue-01","sha":"3ab90caee4cb8ec69345aea818b1980f06f6b98b","user":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"repo":{"id":45839547,"name":"kevin","full_name":"poledev/kevin","owner":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/poledev/kevin","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/kevin","forks_url":"https://api.github.com/repos/poledev/kevin/forks","keys_url":"https://api.github.com/repos/poledev/kevin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/kevin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/kevin/teams","hooks_url":"https://api.github.com/repos/poledev/kevin/hooks","issue_events_url":"https://api.github.com/repos/poledev/kevin/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/kevin/events","assignees_url":"https://api.github.com/repos/poledev/kevin/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/kevin/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/kevin/tags","blobs_url":"https://api.github.com/repos/poledev/kevin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/kevin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/kevin/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/kevin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/kevin/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/kevin/languages","stargazers_url":"https://api.github.com/repos/poledev/kevin/stargazers","contributors_url":"https://api.github.com/repos/poledev/kevin/contributors","subscribers_url":"https://api.github.com/repos/poledev/kevin/subscribers","subscription_url":"https://api.github.com/repos/poledev/kevin/subscription","commits_url":"https://api.github.com/repos/poledev/kevin/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/kevin/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/kevin/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/kevin/issues/comments{/number}","contents_url":"https://api.github.com/repos/poledev/kevin/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/kevin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/kevin/merges","archive_url":"https://api.github.com/repos/poledev/kevin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/kevin/downloads","issues_url":"https://api.github.com/repos/poledev/kevin/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/kevin/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/kevin/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/kevin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/kevin/labels{/name}","releases_url":"https://api.github.com/repos/poledev/kevin/releases{/id}","created_at":"2015-11-09T13:28:13Z","updated_at":"2015-11-09T13:28:40Z","pushed_at":"2015-11-12T09:55:50Z","git_url":"git://github.com/poledev/kevin.git","ssh_url":"git@github.com:poledev/kevin.git","clone_url":"https://github.com/poledev/kevin.git","svn_url":"https://github.com/poledev/kevin","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":0,"default_branch":"master"}},"base":{"label":"poledev:master","ref":"master","sha":"bc7fdeb3ca00e933b2a305147e02b2109f6c6e39","user":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"repo":{"id":45839547,"name":"kevin","full_name":"poledev/kevin","owner":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/poledev/kevin","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/kevin","forks_url":"https://api.github.com/repos/poledev/kevin/forks","keys_url":"https://api.github.com/repos/poledev/kevin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/kevin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/kevin/teams","hooks_url":"https://api.github.com/repos/poledev/kevin/hooks","issue_events_url":"https://api.github.com/repos/poledev/kevin/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/kevin/events","assignees_url":"https://api.github.com/repos/poledev/kevin/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/kevin/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/kevin/tags","blobs_url":"https://api.github.com/repos/poledev/kevin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/kevin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/kevin/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/kevin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/kevin/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/kevin/languages","stargazers_url":"https://api.github.com/repos/poledev/kevin/stargazers","contributors_url":"https://api.github.com/repos/poledev/kevin/contributors","subscribers_url":"https://api.github.com/repos/poledev/kevin/subscribers","subscription_url":"https://api.github.com/repos/poledev/kevin/subscription","commits_url":"https://api.github.com/repos/poledev/kevin/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/kevin/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/kevin/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/kevin/issues/comments{/number}","contents_url":"https://api.github.com/repos/poledev/kevin/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/kevin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/kevin/merges","archive_url":"https://api.github.com/repos/poledev/kevin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/kevin/downloads","issues_url":"https://api.github.com/repos/poledev/kevin/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/kevin/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/kevin/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/kevin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/kevin/labels{/name}","releases_url":"https://api.github.com/repos/poledev/kevin/releases{/id}","created_at":"2015-11-09T13:28:13Z","updated_at":"2015-11-09T13:28:40Z","pushed_at":"2015-11-12T09:55:50Z","git_url":"git://github.com/poledev/kevin.git","ssh_url":"git@github.com:poledev/kevin.git","clone_url":"https://github.com/poledev/kevin.git","svn_url":"https://github.com/poledev/kevin","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poledev/kevin/pulls/22"},"html":{"href":"https://github.com/poledev/kevin/pull/22"},"issue":{"href":"https://api.github.com/repos/poledev/kevin/issues/22"},"comments":{"href":"https://api.github.com/repos/poledev/kevin/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/poledev/kevin/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/poledev/kevin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poledev/kevin/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/poledev/kevin/statuses/3ab90caee4cb8ec69345aea818b1980f06f6b98b"}}}}