V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ioioioioioioi
V2EX  ›  问与答

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

  •  
  •   ioioioioioioi · Jan 20, 2017 · 1760 views
    This topic created in 3389 days ago, the information mentioned may be changed or developed.
    bugsnag 默认报 404 错误,也是醉了。
    3 replies    2017-01-20 11:19:01 +08:00
    likezun
        1
    likezun  
       Jan 20, 2017
    没明白,啥意思?
    mahone3297
        2
    mahone3297  
       Jan 20, 2017
    没明白。。
    ioioioioioioi
        3
    ioioioioioioi  
    OP
       Jan 20, 2017
    @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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   792 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 20:15 · PVG 04:15 · LAX 13:15 · JFK 16:15
    ♥ Do have faith in what you're doing.