Alert to marketplace developers - another 5.7.4 breaking change2 users found helpful
If an addon used the full address of the URL class:
The class has moved and the above will no longer work.
If an addon used the shortcut to the URL class:
The addon will not have any problems because the shortcut now points to the new address.
https://github.com/concrete5/concrete5-5.7.0/blob/develop/web/concre... (see the 'aliases' and 'facades' arrays)
The intent of these isn't to make life more difficult (admittedly it's not something most people think/know about until after the fact), but rather to allow these classes to be extended/overwritten/switched out as needed as new requirements, functionality, etc become known.
John you're absolutely right though, those who used the fully qualified namespace will have stuff broken in this case because the location of that class changed. I just wanted to add a little bit of context as to how it could be avoided so that we can hopefully mitigate some of these kinds of issues in the future.
Lacking any documentation / instruction / context up until your message, I always thought that the alias' were for the lazy, and were most useful for those who wanted to trade precision for conciseness (there's got to be more than one Url class across all namespaces).
No. Aliases are to reduce the verboseness introduced by namespaces which ironically undermines the primary reason for namespaces. It's a kludge really but I think you may find that the following are equivalent
use URL; $URL= new \URL();
$URL = Loader::helper(‘url’);