Right now since I am new to using Objects in PHP I feel like in my head, I think of a PHP object as being something big and bulky. This makes me want to use them less often, I feel Like I am taking really simple code and really over-complicating it by putting it into objects.
If I have a database, cache, session, core, and user object and I need to access them pretty much inside of each other and in other non-mentioned classes, I have decided to store all these inside a registry object. So with my limited knowledge of how objects work, it would almost seem to me that by passing a registry object into a simple object is something really big. Like a registry is holding those 5 objects inside of it. Is this wrong? Is the registy really only passing in a reference to where these objects are in memory? Or am I really passing in a really BIG object into all my objects?
Sorry if this makes no sense at all, hopefully it does. I am just trying to get a better understanding of how they work in relation to performance.