why not inject splFileObject directly ?