Asset server for applications using Slim. Intended for development scenarios. Requires an instance of AssetLoader to handle loading assets from filesystem or remote source.
Author: Alex Weissman (https://alexanderweissman.com)
Author: Jordan Mele
Located at ServeAsset/SlimServeAsset.php
Reverses prefix transformations, locates asset via locator and adds asset content to response. On failure, sets response status code to 404. To use, simply hook up to routing with the necessary relative url passed through at 'url'. NOTE: PHP is very inefficent when it comes to serving static assets, and as such this is only recommended for testing purposes.