Comments (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:
- Now, the middleware will replace the default
errorHandler
andphpErrorHandler
. - 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.
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)
- Cannot get Whoops to be default error handler. HOT 5
- Fatal error: Call to undefined method Closure::getContainer() HOT 5
- Fatal error: Call to undefined method Closure::getContainer() HOT 9
- For a what you disable debug mode? HOT 3
- [again] Call to undefined method Closure::getContainer() HOT 2
- where to setup global mode? HOT 2
- Call to a member function getName() on a non-object HOT 4
- php-slim-whoops ignores middlewares added before HOT 1
- support whoops 2.3.x
- getContentCharset() is broking. branch 0.7.x HOT 1
- Add slim to required dependencies HOT 2
- Rethrowing exceptions HOT 1
- Support PHP8.0 HOT 4
- Can you please create a tag for this repo HOT 3
- [Request] Ability to add the resolver HOT 2
- CORS headers not set HOT 1
- Push to packagist HOT 1
- How I can enable/disable the JsonResponseHandler ? HOT 3
- Fatal error: Cannot use object of type Closure as array HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-slim-whoops.