Comments (6)
just for my information, is there any branch, roadmap or milestone for slim 5?
from slim.
I'm a bit confused by this, the error renderer's sole purpose is to render errors.
adding, removing or changing headers should be done within middleware or at the route callback level.
You can implement your own error middleware if needed to accomplish this.
from slim.
@eerison, there is not an official roadmap for Slim 5. I am just maintaining the many repos of the org and I have a full time job, unfortunately no time for this. If someone wants to step up and take the reigns, they are more than welcome to!
from slim.
@flavioheleno then I would suggest creating your own responder or error middleware to address this. It's not hard to extend the existing stuff to achieve what you want to do. I'm closing this as resolved.
from slim.
I agree that the usage of a ErrorRenderer
is to purposefully render an error, but what I meant with this issue was a way to be capable of doing more than just doing the error redering, but I think you're right, I should probably deal with this in the middleware (or on a custom error handler).
The use case I had in mind was around rate-limiting, where I throw an exception that gets rendered by JsonErrorRenderer
and lacks the rate-limiting headers.
from slim.
just for my information, is there any branch, roadmap or milestone for slim 5?
Is there really a need for Slim 5 at this point other than using new and shiny PHP 8 features? I prefer stability and long term support over rapidly churning out new versions like Laravel and the PHP Language itself are accustomed to doing these days. As a maintainer of multiple web-apps and PHP packages, these days I just like stable packages & a micro-framework like Slim that is not constantly changing and giving me lots of work to do by constantly upgrading yearly. In the PHP world, Laravel is awesome, but their release schedule is to rapid for me to jump on board, Slim and the Yii framework have been stable and reliable and allow me to focus on developing new features in my applications instead of running the rat race of upgrading my codebases to work with the latest version of Slim. In my opinion, Slim 5 should maybe scheduled for like PHP 9 or 10. Slim 4 should continue to be maintained and made to continue working as awesomely as it currently does.
Yii version 1, definitely deserves a medal for the number of years it's been actively supported. 👇
from slim.
Related Issues (20)
- middleware precedence is not working HOT 2
- Nginx subdirectory HOT 2
- Bump slim 2 to 3 with BC HOT 2
- Error handling still problematic HOT 5
- withHeader is not working HOT 1
- PHP8 Fibers Discussion HOT 4
- Will Slim 3.x support PHP8.1 or higher? HOT 5
- Routing error with array $args but not everytime HOT 2
- RuntimeException for PSR-17 ResponseFactory implementations HOT 1
- PSR 7 http-message version requirement HOT 4
- HTML Entity Encoding in PlainTextErrorRenderer HOT 2
- Running out of memory by using custom middlewares HOT 4
- Add #[\ReturnTypeWillChange] attribute to Slim\Collection methods (Slim 3) HOT 1
- How to cache internal https requests HOT 1
- Wrong Response instantiation inside Mİddleware Example HOT 2
- middleware list (inf) HOT 1
- Release-Date for 4.13 with support for psr/http-message 2.x ? HOT 2
- Update psr7
- Using wrong flag to write to error log in ErrorHandler HOT 11
- Unbuffered streaming output HOT 1
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 slim.