Simple factory to retrieve files using constructor dependency injection
- by mrblah
I want to create a class, that is flexible so I can switch implementations.
Problem: Store files/documents
Options: either store locally on the server filesystem, database or etc.
Can someone help with a skeleton structure of the class, and how I would call it?
I am not using an IoC, and don't really want to just yet. I just want the flexibility where I would make maybe 1 code change in the factory to call another implementation.