I am working on an application that will have a "library" folder which will contain a homemade framework/library (session, DB, cache,config type classes) and then a "modules" folder which will contain folders for the sections of my app (ie; blogs/, forums/, account/, etc,etc)
In most of my modules (blogs, forums, etc), I will need multiple objects like cache, database, logger, config objects. I was planning on using dependency injection for this but I am curious, couldn't I just have a Core class/object that could do stuff like my database, cache, logger, time, methods and then just extend this core class into my other module classes and have access to all these things without needing to inject them?
I am pretty new to using classes/object so I may be way off here, please explain.