PHP Classes

singleton initializer

Recommend this page to a friend!

      TonTon PHP Singleton Trait New Generation  >  TonTon PHP Singleton Trait New Generation package blog  >  How to Limit the Numb...  >  All threads  >  singleton initializer  >  (Un) Subscribe thread alerts  
Subject:singleton initializer
Summary:initialize singleton
Messages:1
Author:adriano ghezzi
Date:2021-04-29 11:47:23
 

  1. singleton initializer   Reply   Report abuse  
Picture of adriano ghezzi adriano ghezzi - 2021-04-29 11:47:23
Thank you for the post
Cause you are targeting colleagues who want to learn,
imho you should explain about initialize the object
The way I like is to have
a factory method with parameters that is a recognized convention to create the object

and get Instance to retrieve the instance


 
For more information send a message to info at phpclasses dot org.