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
In order to avoid any potential conflicts with other plugins, it's better to use namespaced classes. An added perk is using PSR-12 autoloading. Even if WordPress is not implementing PSR-12 autoloading (classes are loaded automatically if the file has the same name as the class and the directory names follow the namespaces), I think I'll prefer to use PSR-12 autoloading without having to generate a dump for all the classes.
The text was updated successfully, but these errors were encountered:
In order to avoid any potential conflicts with other plugins, it's better to use namespaced classes. An added perk is using PSR-12 autoloading. Even if WordPress is not implementing PSR-12 autoloading (classes are loaded automatically if the file has the same name as the class and the directory names follow the namespaces), I think I'll prefer to use PSR-12 autoloading without having to generate a dump for all the classes.
The text was updated successfully, but these errors were encountered: