{"action":"created","issue":{"url":"https://api.github.com/repos/dingo/api/issues/797","repository_url":"https://api.github.com/repos/dingo/api","labels_url":"https://api.github.com/repos/dingo/api/issues/797/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/797/comments","events_url":"https://api.github.com/repos/dingo/api/issues/797/events","html_url":"https://github.com/dingo/api/pull/797","id":124941453,"number":797,"title":"Ability to add totally custom exception handler","user":{"login":"mikkokut","id":2885964,"avatar_url":"https://avatars.githubusercontent.com/u/2885964?v=3","gravatar_id":"","url":"https://api.github.com/users/mikkokut","html_url":"https://github.com/mikkokut","followers_url":"https://api.github.com/users/mikkokut/followers","following_url":"https://api.github.com/users/mikkokut/following{/other_user}","gists_url":"https://api.github.com/users/mikkokut/gists{/gist_id}","starred_url":"https://api.github.com/users/mikkokut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikkokut/subscriptions","organizations_url":"https://api.github.com/users/mikkokut/orgs","repos_url":"https://api.github.com/users/mikkokut/repos","events_url":"https://api.github.com/users/mikkokut/events{/privacy}","received_events_url":"https://api.github.com/users/mikkokut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-01-05T10:52:00Z","updated_at":"2016-10-20T19:48:49Z","closed_at":"2016-03-09T03:10:14Z","pull_request":{"url":"https://api.github.com/repos/dingo/api/pulls/797","html_url":"https://github.com/dingo/api/pull/797","diff_url":"https://github.com/dingo/api/pull/797.diff","patch_url":"https://github.com/dingo/api/pull/797.patch"},"body":"Config option to be able to implement totally custom exception handler which extends from the <code>\\Dingo\\Api\\Exception\\Handler</code>. \r\n\r\nAdded config option <code> exceptionHandler</code> which takes class for the handler. Defaults to original implementation."},"comment":{"url":"https://api.github.com/repos/dingo/api/issues/comments/255209150","html_url":"https://github.com/dingo/api/pull/797#issuecomment-255209150","issue_url":"https://api.github.com/repos/dingo/api/issues/797","id":255209150,"user":{"login":"hskrasek","id":787487,"avatar_url":"https://avatars.githubusercontent.com/u/787487?v=3","gravatar_id":"","url":"https://api.github.com/users/hskrasek","html_url":"https://github.com/hskrasek","followers_url":"https://api.github.com/users/hskrasek/followers","following_url":"https://api.github.com/users/hskrasek/following{/other_user}","gists_url":"https://api.github.com/users/hskrasek/gists{/gist_id}","starred_url":"https://api.github.com/users/hskrasek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hskrasek/subscriptions","organizations_url":"https://api.github.com/users/hskrasek/orgs","repos_url":"https://api.github.com/users/hskrasek/repos","events_url":"https://api.github.com/users/hskrasek/events{/privacy}","received_events_url":"https://api.github.com/users/hskrasek/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T19:48:49Z","updated_at":"2016-10-20T19:48:49Z","body":"@pcastrotigre I'm using the following method to rebind the handler:\r\n\r\n```php\r\n        $this->app->singleton('api.exception', function ($app) {\r\n            $config = $app['config']['api'];\r\n\r\n            return new Handler(\r\n                $app['Illuminate\\Contracts\\Debug\\ExceptionHandler'],\r\n                $config['errorFormat'],\r\n                $config['debug']\r\n            );\r\n        });\r\n```"}}
{"actor":{"display_login":"hskrasek"}}