tuupola / server-timing-middleware

PSR-7 & PSR-15 middleware to add the Server-Timing header
MIT License
198 stars 9 forks source link

Improve extensibility #3

Closed laurinomme-other closed 7 years ago

laurinomme-other commented 7 years ago

Introduce & depend on StopwatchInterface, expose from ServerTiming to children.

This is so that a stub stopwatch can be substituted in production for uses of StopwatchInterface throughout the code and also passed to ServerTiming.

tuupola commented 7 years ago

Merged. Will release tomorrow. Thanks!

tuupola commented 7 years ago

Released as 0.5.0.