Does a "use" statement persist through includes?
<p>Best explained with an example:</p>

<p><strong>file1.php</strong></p>

<pre><code>&lt;?php

use Vendor\Module\Class as MyClass;

MyClass::$something = TRUE;

?&gt;
</code></pre>

<p><strong>file2.php</strong></p>

<pre><code>&lt;?php

require file1.php;

echo MyClass::$something;

?&gt;
</code></pre>

<p>Ok so I admit that I already tried it and get a "class not found" error but I refuse to believe that this is not possible? Is there some way of accomplishing this? Is it already possible and I'm making a ridiculous typo?</p>

<p>Thanks!</p>