ioioioioioioi
V2EX  ›  问与答

Symfony 2.8 如何在 config.yml 中让 Symfony\Component\HttpKernel\Exception\NotFoundHttpException 返回 false

By ioioioioioioi at 2017 年 1 月 20 日 · 2093 次点击
bugsnag 默认报 404 错误,也是醉了。
3 条回复  •  2017-01-20 11:19:01 +08:00
likezun
   1
likezun  
   2017 年 1 月 20 日
没明白,啥意思?
mahone3297
   2
mahone3297  
   2017 年 1 月 20 日
没明白。。
ioioioioioioi
   3
ioioioioioioi  
OP
   2017 年 1 月 20 日
@likezun
@mahone3297
bugsnag 在 symofny 中默认报 404 错误,为了不报 404 错误,对方说:
I believe you could implement the configuration in your config file by setting it to return false for the following exception:

Symfony\Component\HttpKernel\Exception\NotFoundHttpException
© 2026 V2EX · 24ms · 3.9.8.5