container

  • Yellow leaves in green grass

    Using Laravel’s Container In A WordPress Plugin

    A common pattern in WordPress development is to have one “Plugin” class, that implements the singleton pattern, and has an instance of each class the plugin uses sets in properties. The first time the singleton is called, all of the classes are loaded and the important hooks are set. That’s a lot of responsibilities. Modern…

    Read more