dannykopping / spore

ReSTful extensions for Slim
29 stars 2 forks source link

Spore\ReST\AutoRoute\Router should be more modular #21

Open mathielen opened 11 years ago

mathielen commented 11 years ago

I am returning status value objects within my service instances. Some simple object that has a statuscode and a statustext - as its a simple REST system. The serialization mechanism from spore generates nice xml or json from it - but sadly there is no way to automatically use the status code of the returned value object in the http-header.

Maybe you refactor the Router so there will be more possibilities to change the result-processing flow?