Question for @DevinWalker Google_Maps_Builder class uses an almost singleton pattern, but has no __construct() magic method, so I can make a new instance of it at any time. The class totally should be a singleton, you wouldn't want anything there besides instance() to run twice. So, shouldn't we make it a true singleton by preventing new instances from being instantiated? I can't see any harm here, but I could be missing something...
Question for @DevinWalker
Google_Maps_Builder
class uses an almost singleton pattern, but has no__construct()
magic method, so I can make a new instance of it at any time. The class totally should be a singleton, you wouldn't want anything there besidesinstance()
to run twice. So, shouldn't we make it a true singleton by preventing new instances from being instantiated? I can't see any harm here, but I could be missing something...