{"action":"created","issue":{"url":"https://api.github.com/repos/lexik/LexikMailerBundle/issues/42","labels_url":"https://api.github.com/repos/lexik/LexikMailerBundle/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/lexik/LexikMailerBundle/issues/42/comments","events_url":"https://api.github.com/repos/lexik/LexikMailerBundle/issues/42/events","html_url":"https://github.com/lexik/LexikMailerBundle/pull/42","id":58684230,"number":42,"title":"Override factory","user":{"login":"snoob","id":1806237,"avatar_url":"https://avatars.githubusercontent.com/u/1806237?v=3","gravatar_id":"","url":"https://api.github.com/users/snoob","html_url":"https://github.com/snoob","followers_url":"https://api.github.com/users/snoob/followers","following_url":"https://api.github.com/users/snoob/following{/other_user}","gists_url":"https://api.github.com/users/snoob/gists{/gist_id}","starred_url":"https://api.github.com/users/snoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoob/subscriptions","organizations_url":"https://api.github.com/users/snoob/orgs","repos_url":"https://api.github.com/users/snoob/repos","events_url":"https://api.github.com/users/snoob/events{/privacy}","received_events_url":"https://api.github.com/users/snoob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T02:21:02Z","updated_at":"2015-02-24T14:10:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lexik/LexikMailerBundle/pulls/42","html_url":"https://github.com/lexik/LexikMailerBundle/pull/42","diff_url":"https://github.com/lexik/LexikMailerBundle/pull/42.diff","patch_url":"https://github.com/lexik/LexikMailerBundle/pull/42.patch"},"body":"Hi\r\nI have made some changes to make message factory easier to override.  Moreover, i added a method to allow people to work with Email or Layout instance (i have a use case).\r\nI have made some changes in tests also because i couldn't run them in standalone.\r\n"},"comment":{"url":"https://api.github.com/repos/lexik/LexikMailerBundle/issues/comments/75762077","html_url":"https://github.com/lexik/LexikMailerBundle/pull/42#issuecomment-75762077","issue_url":"https://api.github.com/repos/lexik/LexikMailerBundle/issues/42","id":75762077,"user":{"login":"snoob","id":1806237,"avatar_url":"https://avatars.githubusercontent.com/u/1806237?v=3","gravatar_id":"","url":"https://api.github.com/users/snoob","html_url":"https://github.com/snoob","followers_url":"https://api.github.com/users/snoob/followers","following_url":"https://api.github.com/users/snoob/following{/other_user}","gists_url":"https://api.github.com/users/snoob/gists{/gist_id}","starred_url":"https://api.github.com/users/snoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoob/subscriptions","organizations_url":"https://api.github.com/users/snoob/orgs","repos_url":"https://api.github.com/users/snoob/repos","events_url":"https://api.github.com/users/snoob/events{/privacy}","received_events_url":"https://api.github.com/users/snoob/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T14:10:44Z","updated_at":"2015-02-24T14:10:44Z","body":"@cedric-g  : It was a mistake and i fixed it.\r\n\r\nConcerning the throw exception toggle, i think it was a wrong choice after thinking about it. As you suggest, it's better to always throw an exception and using a try catch on the MessageFactory::get method to send the ReferenceNotFound mail to admin. Is that ok for you?"}}