Added missing injection of FileRepository