title: Will a Registry Class in PHP work like this?
body: <p>If I create a registry object to store other objects and settings in like this...  </p>
  
  <pre><code>$registry = Registry::getInstance();
  </code></pre>
  
  <p>And then create 2 other objects and pass the Registry object into them like this below...   </p>
  
  <pre><code>$core = new core($registry);
  $database = Database::getInstance($registry);
  </code></pre>
  
  <p>and then later in the script I add some objects to the Registry object...   </p>
  
  <pre><code>// Store some Objects into our Registry object using a Registry Pattern
  $registry-&gt;storeObject("database", $database);
  $registry-&gt;storeObject("session", $session);
  $registry-&gt;storeObject("cache", $cache);
  $registry-&gt;storeObject("user", $user);
  </code></pre>
  
  <p>Will methods in the core and database objects that were  created at the top, still have access to all the objects that I store into the registry even though the other objets were stored into the registry AFTER the core and database Objects were created?</p>