You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, when two different projects load the same package, they may have other prefixes:
ProjectOne\Vendor\
ProjectTwo\Vendor\
So in the first project which loads ealier you do:
ProjectOne\Vendor\PackageName\my_func();
which is fine, but the other:
ProjectTwo\Vendor\PackageName\my_func();
Gives function not found fatal error.
The reason why is because of both function.php files, despite changed namespace has the same content hash generated by composer autoloader. And because the file with given hash has been already loaded it doesn't load it again.
Any idea why this is happening? Does Imposter change the namespace after the Composer generates the file hashes?
The text was updated successfully, but these errors were encountered:
Let's assume we have a package with:
Where this
functions.php
file content is:Now, when two different projects load the same package, they may have other prefixes:
ProjectOne\Vendor\
ProjectTwo\Vendor\
So in the first project which loads ealier you do:
ProjectOne\Vendor\PackageName\my_func();
which is fine, but the other:
ProjectTwo\Vendor\PackageName\my_func();
Gives function not found fatal error.
The reason why is because of both
function.php
files, despite changed namespace has the same content hash generated by composer autoloader. And because the file with given hash has been already loaded it doesn't load it again.Any idea why this is happening? Does Imposter change the namespace after the Composer generates the file hashes?
The text was updated successfully, but these errors were encountered: