Ejemplo n.º 1
0
 /**
  * Protected constructor to prevent creating a new instance of the
  * *Singleton* via the `new` operator from outside of this class.
  */
 protected function __construct($dbConnectorType = CRM_DB_CONNECTOR_TYPE_MYSQL)
 {
     $this->enabled = \creamy\ModuleHandler::moduleSystemEnabled($dbConnectorType);
     if ($this->enabled) {
         // initialize database connector.
         $this->db = new \creamy\DbHandler();
         // initialize modules
         $this->loadModules();
     }
 }