I have a stupid question:
What's the best way to have numerous objects share the same instance of another object?
- Store the instance in the session?
- Have a "registry" singleton that contains each instance
- Use the $_GLOBALS array ( there I said it).
There will be quite a few sharable objects so I don't want to go passing references to the constructors of each class.
Your thoughts are appreciated.