Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move more code to classes and implement autoloading #25

Open
JohnRDOrazio opened this issue Aug 9, 2024 · 1 comment
Open

Move more code to classes and implement autoloading #25

JohnRDOrazio opened this issue Aug 9, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@JohnRDOrazio
Copy link
Member

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.

@JohnRDOrazio JohnRDOrazio added the enhancement New feature or request label Aug 9, 2024
@JohnRDOrazio
Copy link
Member Author

Currently taking care of this in the oop-dev branch

@JohnRDOrazio JohnRDOrazio added this to the v8.4 milestone Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant