コード例 #1
0
 /**
  * 初期化
  * 
  * @param SessionComponent $session
  * @param AuthComponent $auth
  * @param int $time
  */
 public static function init(SessionComponent $session = null, AuthComponent $auth = null, $timestamp = null, $remoteIp = null)
 {
     self::$session = $session;
     self::$auth = $auth;
     self::$timestamp = is_null($timestamp) ? time() : $timestamp;
     self::$remoteIp = is_null($remoteIp) ? env('REMOTE_ADDR') : $remoteIp;
 }