Added support for the FOS Rest bundle.