Closed GaryJones closed 7 years ago
I'm absolutely keen on doing this. The reason why I wanted to leave it all in one class at first, was because there are so many developers out there who haven't mastered Composer yet. It might seem like a daunting task to some, if they have to use Composer (or manually download) to get all these files. After rethinking this, I think the pros outweigh the cons and so I'm happy to add this for v1.2.0.
Some important bits to think about:
Thanks @GaryJones, finally finished this up in #41.
Feel free to check out the big-2.0-release
branch to test and see how it looks now. :+1:
More of a thought dump, but one could consider something slightly more OOP: having different types of admin notices as polymorphism with an interface, and individual admin notices as Value Objects.
It could definitely be taken further -
fallback_plugin_name()
in the notice interface and types for instance.Use, abuse or ignore as you see fit :-)