$instances
$instances : array<mixed,\MocaBonita\tools\MbSingleton>
Stores instances of classes
Main class of the MocaBonita WpdbConnectionResolver
$instances : array<mixed,\MocaBonita\tools\MbSingleton>
Stores instances of classes
getInstance() : static
The singleton pattern is useful when we need to make sure that we only have a single instance of a class for the entire request lifecycle in a Web application. This usually occurs when we have global objects (such as a configuration class) or a resource (Such as an event queue).