Allow an object that implements FileInterface to be passed into the Resource controller.