Removed an unused resource, used the request stack in order to solve an issue when generating URLs for Twig assets.