Giter Site home page Giter Site logo

Comments (2)

zeuxisoo avatar zeuxisoo commented on May 19, 2024 2

In this stage, the middleware only replaces the default errorHandler container only not phpErrorHandler. The phpErrorHandler is for PHP7.

And if your application breaks the lifecycle of slim middleware. it will not trigger this middleware that why you cannot see the whoop error. For example, the program throws an exception and without a handle.

Update on 2017-01-18 06:39:

  1. Now, the middleware will replace the default errorHandler and phpErrorHandler.
  2. If you want all errors/exceptions handle by whoops, you can use the global mode to install the whoops. this mode supports the program life cycle broken.

from php-slim-whoops.

visualcookie avatar visualcookie commented on May 19, 2024

Amazing, will try that out as soon as I'm back. 👍

@zeuxisoo
Edit Hum... somehow it still shows the default Slim Application Error message. Have tried to implement it as middleware aswell as trying it as global in my depenencies file. To see my file structure look here: https://github.com/visualcookie/slim-sentinel-auth/tree/version-2

Maybe you have an idea. I've not yet committed this, since it's not working, but I think you can kinda imagine what I did.

Edit 2 Have figured it out. I needed to implement it in Middleware as well as set the Global. Now works. :)

from php-slim-whoops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.