ioioioioioioi
V2EX  ›  问与答

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

  •  
  •   ioioioioioioi · Jan 20, 2017 · 1825 views
    This topic created in 3421 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   ·   5456 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:54 · PVG 16:54 · LAX 01:54 · JFK 04:54
    ♥ Do have faith in what you're doing.