zendframework / zend-expressive-skeleton

Begin developing PSR-7 middleware applications in seconds!
BSD 3-Clause "New" or "Revised" License
136 stars 90 forks source link

Should actions not implement Zend\Stratigility\MiddlewareInterface? #19

Closed RalfEggert closed 8 years ago

RalfEggert commented 8 years ago

I wonder, if it would make sense, if the HomePageAction and PingAction implement the Zend\Stratigility\MiddlewareInterface.

weierophinney commented 8 years ago

No. In fact, I was against adding that interface from the beginning, and only did it under pressure from a number of vocal contributors. Requiring usage of the interface makes it far more difficult to share middleware between different middleware runners, and it's why Stratigility itself does not require usage of the MiddlewareInterface, but instead looks only for a callable.

RalfEggert commented 8 years ago

Thanks for clarification. That makes sense! :-)