Example #1
0
 /**
  * Constructor
  *
  * Prevent creating instances of this class by making the contructor private
  */
 private final function __construct()
 {
     //Created the adapter registry
     self::$_adapters = array();
     self::$_registry = new ArrayObject();
     // Register the autoloader in a way to play well with as many configurations as possible.
     spl_autoload_register(array(__CLASS__, 'load'));
     if (function_exists('__autoload')) {
         spl_autoload_register('__autoload');
     }
 }