WordPress-Plugin-Boilerplate icon indicating copy to clipboard operation
WordPress-Plugin-Boilerplate copied to clipboard

Why not using singleton pattern?

Open essentique opened this issue 2 years ago • 1 comments

I just picked up the code to use it for my plugin. I have this urge to turn some of the core classes to singletons. Before doing so, was wondering why it's not like that already.

Any specific reason?

essentique avatar Aug 05 '22 19:08 essentique

You totally could @essentique . It can cause some hurdles when building out tests but it has been a while since I've been in the weeds to get into the specifics. Give it a try and go from there.

DevinVinson avatar Aug 05 '22 20:08 DevinVinson