{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/42928450","id":42928450,"diff_hunk":"@@ -214,11 +214,94 @@ will be passed two parameters:\n     A :class:`\\\\Symfony\\\\Component\\\\HttpKernel\\\\Log\\\\DebugLoggerInterface`\n     instance which may be ``null`` in some circumstances.\n \n+Extending from the Default ExceptionController Class\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Instead of creating a new exception controller from scratch you can, of course,\n also extend the default :class:`Symfony\\\\Bundle\\\\TwigBundle\\\\Controller\\\\ExceptionController`.\n In that case, you might want to override one or both of the ``showAction()`` and\n ``findTemplate()`` methods. The latter one locates the template to be used.\n \n+To create your own controller logic extending from the ExceptionController, simply\n+create a controller with the specified method you want to override. In this\n+example, we gonna override the showAction method::","path":"cookbook/controller/error_pages.rst","position":null,"original_position":13,"commit_id":"d144a36c3f459a46bfe5e24e9f6bc0e81bf67204","original_commit_id":"ce994d877e9ebec1ffd17b1dc9dc9a92710a577d","user":{"login":"iagomelanias","id":6279712,"avatar_url":"https://avatars.githubusercontent.com/u/6279712?v=3","gravatar_id":"","url":"https://api.github.com/users/iagomelanias","html_url":"https://github.com/iagomelanias","followers_url":"https://api.github.com/users/iagomelanias/followers","following_url":"https://api.github.com/users/iagomelanias/following{/other_user}","gists_url":"https://api.github.com/users/iagomelanias/gists{/gist_id}","starred_url":"https://api.github.com/users/iagomelanias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iagomelanias/subscriptions","organizations_url":"https://api.github.com/users/iagomelanias/orgs","repos_url":"https://api.github.com/users/iagomelanias/repos","events_url":"https://api.github.com/users/iagomelanias/events{/privacy}","received_events_url":"https://api.github.com/users/iagomelanias/received_events","type":"User","site_admin":false},"body":"I updated the explanation, de71bf1. `In this\r\nexample, the exceptions will be overwritten by a response in json format`","created_at":"2015-10-24T01:45:00Z","updated_at":"2015-10-24T01:45:00Z","html_url":"https://github.com/symfony/symfony-docs/pull/5757#discussion_r42928450","pull_request_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments/42928450"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/5757#discussion_r42928450"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757","id":46844875,"html_url":"https://github.com/symfony/symfony-docs/pull/5757","diff_url":"https://github.com/symfony/symfony-docs/pull/5757.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/5757.patch","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/5757","number":5757,"state":"open","locked":false,"title":"Custom ExceptionController using extended class","user":{"login":"iagomelanias","id":6279712,"avatar_url":"https://avatars.githubusercontent.com/u/6279712?v=3","gravatar_id":"","url":"https://api.github.com/users/iagomelanias","html_url":"https://github.com/iagomelanias","followers_url":"https://api.github.com/users/iagomelanias/followers","following_url":"https://api.github.com/users/iagomelanias/following{/other_user}","gists_url":"https://api.github.com/users/iagomelanias/gists{/gist_id}","starred_url":"https://api.github.com/users/iagomelanias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iagomelanias/subscriptions","organizations_url":"https://api.github.com/users/iagomelanias/orgs","repos_url":"https://api.github.com/users/iagomelanias/repos","events_url":"https://api.github.com/users/iagomelanias/events{/privacy}","received_events_url":"https://api.github.com/users/iagomelanias/received_events","type":"User","site_admin":false},"body":"| Q             | A   |\r\n|---------------|-----|\r\n| Doc fix?      | no  |\r\n| New docs?     | yes |\r\n| Applies to    | all |\r\n| Fixed tickets |  no   |\r\n\r\nLast week, i implemented a custom ExceptionController extending from the default class. I didn't find the complete information in this doc, so i made a change explaining a little better how it should be done.","created_at":"2015-10-05T22:58:25Z","updated_at":"2015-10-24T01:45:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8777b514d89d8c3b815d32b98b17a070c05d6a08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/5757/comments","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/d144a36c3f459a46bfe5e24e9f6bc0e81bf67204","head":{"label":"iagomelanias:patch-1","ref":"patch-1","sha":"d144a36c3f459a46bfe5e24e9f6bc0e81bf67204","user":{"login":"iagomelanias","id":6279712,"avatar_url":"https://avatars.githubusercontent.com/u/6279712?v=3","gravatar_id":"","url":"https://api.github.com/users/iagomelanias","html_url":"https://github.com/iagomelanias","followers_url":"https://api.github.com/users/iagomelanias/followers","following_url":"https://api.github.com/users/iagomelanias/following{/other_user}","gists_url":"https://api.github.com/users/iagomelanias/gists{/gist_id}","starred_url":"https://api.github.com/users/iagomelanias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iagomelanias/subscriptions","organizations_url":"https://api.github.com/users/iagomelanias/orgs","repos_url":"https://api.github.com/users/iagomelanias/repos","events_url":"https://api.github.com/users/iagomelanias/events{/privacy}","received_events_url":"https://api.github.com/users/iagomelanias/received_events","type":"User","site_admin":false},"repo":{"id":43679857,"name":"symfony-docs","full_name":"iagomelanias/symfony-docs","owner":{"login":"iagomelanias","id":6279712,"avatar_url":"https://avatars.githubusercontent.com/u/6279712?v=3","gravatar_id":"","url":"https://api.github.com/users/iagomelanias","html_url":"https://github.com/iagomelanias","followers_url":"https://api.github.com/users/iagomelanias/followers","following_url":"https://api.github.com/users/iagomelanias/following{/other_user}","gists_url":"https://api.github.com/users/iagomelanias/gists{/gist_id}","starred_url":"https://api.github.com/users/iagomelanias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iagomelanias/subscriptions","organizations_url":"https://api.github.com/users/iagomelanias/orgs","repos_url":"https://api.github.com/users/iagomelanias/repos","events_url":"https://api.github.com/users/iagomelanias/events{/privacy}","received_events_url":"https://api.github.com/users/iagomelanias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iagomelanias/symfony-docs","description":"The Symfony documentation","fork":true,"url":"https://api.github.com/repos/iagomelanias/symfony-docs","forks_url":"https://api.github.com/repos/iagomelanias/symfony-docs/forks","keys_url":"https://api.github.com/repos/iagomelanias/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iagomelanias/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iagomelanias/symfony-docs/teams","hooks_url":"https://api.github.com/repos/iagomelanias/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/iagomelanias/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/iagomelanias/symfony-docs/events","assignees_url":"https://api.github.com/repos/iagomelanias/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/iagomelanias/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/iagomelanias/symfony-docs/tags","blobs_url":"https://api.github.com/repos/iagomelanias/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iagomelanias/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iagomelanias/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/iagomelanias/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iagomelanias/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/iagomelanias/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/iagomelanias/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/iagomelanias/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/iagomelanias/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/iagomelanias/symfony-docs/subscription","commits_url":"https://api.github.com/repos/iagomelanias/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/iagomelanias/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/iagomelanias/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/iagomelanias/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/iagomelanias/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/iagomelanias/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iagomelanias/symfony-docs/merges","archive_url":"https://api.github.com/repos/iagomelanias/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iagomelanias/symfony-docs/downloads","issues_url":"https://api.github.com/repos/iagomelanias/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/iagomelanias/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/iagomelanias/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/iagomelanias/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iagomelanias/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/iagomelanias/symfony-docs/releases{/id}","created_at":"2015-10-05T11:15:48Z","updated_at":"2015-10-05T11:15:54Z","pushed_at":"2015-10-24T01:33:28Z","git_url":"git://github.com/iagomelanias/symfony-docs.git","ssh_url":"git@github.com:iagomelanias/symfony-docs.git","clone_url":"https://github.com/iagomelanias/symfony-docs.git","svn_url":"https://github.com/iagomelanias/symfony-docs","homepage":"http://symfony.com/doc","size":31454,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":false,"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":"2.8"}},"base":{"label":"symfony:2.3","ref":"2.3","sha":"506b33155bc062015210dc18a1aafdb20c720e9f","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":521583,"name":"symfony-docs","full_name":"symfony/symfony-docs","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony-docs","description":"The Symfony documentation","fork":false,"url":"https://api.github.com/repos/symfony/symfony-docs","forks_url":"https://api.github.com/repos/symfony/symfony-docs/forks","keys_url":"https://api.github.com/repos/symfony/symfony-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony-docs/teams","hooks_url":"https://api.github.com/repos/symfony/symfony-docs/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony-docs/events","assignees_url":"https://api.github.com/repos/symfony/symfony-docs/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony-docs/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony-docs/tags","blobs_url":"https://api.github.com/repos/symfony/symfony-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony-docs/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony-docs/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony-docs/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony-docs/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony-docs/subscription","commits_url":"https://api.github.com/repos/symfony/symfony-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony-docs/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony-docs/merges","archive_url":"https://api.github.com/repos/symfony/symfony-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony-docs/downloads","issues_url":"https://api.github.com/repos/symfony/symfony-docs/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony-docs/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony-docs/releases{/id}","created_at":"2010-02-17T08:43:51Z","updated_at":"2015-10-20T21:16:56Z","pushed_at":"2015-10-24T01:33:28Z","git_url":"git://github.com/symfony/symfony-docs.git","ssh_url":"git@github.com:symfony/symfony-docs.git","clone_url":"https://github.com/symfony/symfony-docs.git","svn_url":"https://github.com/symfony/symfony-docs","homepage":"http://symfony.com/doc","size":65056,"stargazers_count":1038,"watchers_count":1038,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2060,"mirror_url":null,"open_issues_count":302,"forks":2060,"open_issues":302,"watchers":1038,"default_branch":"2.8"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757"},"html":{"href":"https://github.com/symfony/symfony-docs/pull/5757"},"issue":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/5757"},"comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/issues/5757/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony-docs/pulls/5757/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony-docs/statuses/d144a36c3f459a46bfe5e24e9f6bc0e81bf67204"}}}}