/**
  * Clears the registry of configuration and instances.
  *
  * @return void
  */
 public static function clear()
 {
     static::$_instances = [];
 }
 /**
  * clear pool
  * @static
  */
 public static function clearPool()
 {
     static::$_instances = array();
 }
Esempio n. 3
0
 /**
  * Clears the registry of configuration and instances.
  *
  * @return void
  */
 public static function clear()
 {
     static::$_instances = [];
     static::$_config = [];
     static::$_fallbacked = [];
 }
Esempio n. 4
0
 /**
  * Kill all database connections
  *
  * @return void
  */
 public static function kill_all_connections()
 {
     static::$_instances = array();
 }
Esempio n. 5
0
 public static function clear_instances()
 {
     static::$_instance = null;
     static::$_instances = array();
 }
Esempio n. 6
0
 /**
  * Get Instances
  * 
  * Gets instances that the object
  * is holding
  * 
  * @access	public
  * @return	Spark\Object
  */
 protected static final function _get_instances()
 {
     if (!static::$_instances) {
         static::$_instances = static::factory();
     }
     return static::$_instances;
 }