Closed alexmigf closed 2 months ago
Works for me. You left out the require
part of your composer.json
so I tested with composer require psr/log
and it looks alright. Maybe post a fuller example and specific file that is not prefixed as expected.
Hi @BrianHenryIE,
The file is identical to the one above, except that I intentionally omitted the require statement, as it can be any library. I am testing with Dompdf, but the issue persists. The namespace has been correctly modified, and the class name remains Dompdf (I think it should be SOMETHING_Vendor_Dompdf).
@BrianHenryIE
Do you have any idea what might be causing the issue?
The classname is unchanged when inside a namespace. It is only changed in the global namespace where it could conflict with another. Once the namespace it exists in is renamed, the problem is solved.
I was considering removing the class renaming altogether in favour of moving things from the global namespace into their own namespace. But at the glacial pace of development, that's not going to change anytime soon.
Thank you for the information!
I'm having trouble to prefix the libraries classes using the latest stable version, not sure what I'm doing wrong:
I'm targeting
vendor
but I tried withlib
and I get the same output.