slimphp / Slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
http://slimframework.com
MIT License
11.98k stars 1.95k forks source link

[develop] Why do Route & App middlewares have different signatures? #1030

Closed alanpich closed 9 years ago

alanpich commented 9 years ago

It seems a bit strange that route & application middleware have completely different signatures, and as such are not interchangeable. Is there a particular reason for this, as I think it will restrict the use of 3rd party middleware libraries?

lalop commented 9 years ago

Hi, I made a pr for that https://github.com/slimphp/Slim/pull/1009

silentworks commented 9 years ago

This is being addressed by @lalop so will close this out.