Nameless
Nameless copied to clipboard
Move `ROOT_PATH` constant to a class
Why?
- It no longer needs to be set manually (like in CLI installer, seeder, etc), reducing the possibility of errors when files are moved
- Tools like phpstan do not like global constants
I think we should keep the ROOT_PATH constant for 2.1.0, and then remove it in 2.2.0 - just to spread out the massive breaking changes a bit for module devs