spore
spore copied to clipboard
Spore\ReST\AutoRoute\Router should be more modular
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?