I read this UPGRADE, and found that Yii3 removed Yii autoloader, why? I think Yii autoloader is a convenient tool.
Is this a low efficiency tools in Yii2?
Yii 3 now primarily relies on the composer autoloader and does not ship its own autoloader anymore.
However this also means one can not define autoloading namespaces via aliases anymore which I found very convenient.
5 Likes
Because:
- Composer autoloader is there.
- Composer autoloader improved a lot since Yii 2.0 times and our autoloader doesn’t give any performance gain compared to it.
- It will definitely change how extension loads its classes but the change is minor and for the better: instead of defining aliases, package
composer.jsonis now adjusted.
6 Likes