PHP and access to a global object from everywhere
<p>I have a global object, a "registry", it is a container with other important objects:</p>

<ul>
<li>Input object. </li>
<li>Output object. </li>
<li>DB object with connection. </li>
<li>Logging object. </li>
<li>Session object.</li>
</ul>

<p>I need to have this global object in every place (object), where I process my request. </p>

<p>Like in my JBoss environment, where I have one Stateful Session Bean as a front controller, which directs the processing to a special Stateless Session Bean, I have one entry point, "facade.php". </p>

<p>In this facade.php, I create the global object and place the other objects (input object, ...) into it.</p>

<p>Then there is a large switch statement, where I redirect the request to special processing objects.</p>

<p>Is there a method, mechanism, to have access to this general object from the processing objects without handing it over as a parameter?</p>
