Example #1
0
 /**
  * 设置实例名字
  * @param string $registryClassName
  */
 public static function setClassName($registryClassName = 'Cemvc_App_Register')
 {
     if (self::$_registry !== null) {
         throw new Exception('Registry is already initialized');
     }
     if (!is_string($registryClassName) || !$registryClassName) {
         throw new Exception("Argument is not a class name");
     }
     self::$_registryClassName = $registryClassName;
 }