{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/20808","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/20808/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/20808/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/20808/events","html_url":"https://github.com/symfony/symfony/pull/20808","id":194014868,"number":20808,"title":"[Console] Allow Application to handle errors","user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"labels":[{"id":231677,"url":"https://api.github.com/repos/symfony/symfony/labels/BC%20Break","name":"BC Break","color":"e10c02","default":false},{"id":125388,"url":"https://api.github.com/repos/symfony/symfony/labels/Console","name":"Console","color":"DDDDDD","default":false},{"id":100378,"url":"https://api.github.com/repos/symfony/symfony/labels/Feature","name":"Feature","color":"02e10c","default":false},{"id":237003792,"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/symfony/symfony/milestones/10","html_url":"https://github.com/symfony/symfony/milestones/3.x","labels_url":"https://api.github.com/repos/symfony/symfony/milestones/10/labels","id":2117464,"number":10,"title":"3.x","description":"New features and deprecations go here. Since Symfony versions are time based, this milestone has no due date.","creator":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"open_issues":160,"closed_issues":10,"state":"open","created_at":"2016-11-06T20:24:23Z","updated_at":"2016-12-07T13:18:53Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-12-07T10:41:19Z","updated_at":"2016-12-07T19:36:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/20808","html_url":"https://github.com/symfony/symfony/pull/20808","diff_url":"https://github.com/symfony/symfony/pull/20808.diff","patch_url":"https://github.com/symfony/symfony/pull/20808.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Branch?       | master\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | yes\r\n| Tests pass?   | yes\r\n| Fixed tickets | N/A\r\n| License       | MIT\r\n| Doc PR        | not yet\r\n\r\nThis allows to handle nicely any `\\Throwable` when using the console component standalone with PHP 7.\r\n\r\nWith the full-stack framework, a throwable is caught and handled by the Debug component `ErrorHandler` and the exception handler registered by `Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener`. (see https://github.com/symfony/symfony/pull/20797)\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/265549616","html_url":"https://github.com/symfony/symfony/pull/20808#issuecomment-265549616","issue_url":"https://api.github.com/repos/symfony/symfony/issues/20808","id":265549616,"user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T19:36:16Z","updated_at":"2016-12-07T19:36:16Z","body":"How bad would it be to handle errors by using the `Debug` component as in 310eaa1f28dad62310126cb10b7bcd2437093ece ? Calling `Debug::enable` outside from a bootstrapping file looks hazardous to me, but what could be proposed instead, or how to make it safer/reliable? Should we consider that the end-user opted-in by using running this application with `catchErrors` and accept it may have a wider effect?\r\nWe should probably not do anything for PHP 5 after all... "}}
{"actor":{"display_login":"ogizanagi"}}