Changed the ResponseFactory to use the Symfony APIs