예제 #1
0
 /**
  * Initializes the current user.
  *
  * @see sfBasicSecurityUser
  */
 public function initialize(sfEventDispatcher $dispatcher, sfStorage $storage, $options = array())
 {
     $sessionConfig = sfConfig::get('op_session_life_time');
     if (!empty($sessionConfig[sfConfig::get('sf_app')]['idletime'])) {
         $options['timeout'] = $sessionConfig[sfConfig::get('sf_app')]['idletime'];
     }
     parent::initialize($dispatcher, $storage, $options);
     $this->initializeCredentials();
 }
예제 #2
0
  /**
   * Initializes the current user.
   *
   * @see sfBasicSecurityUser
   */
  public function initialize(sfEventDispatcher $dispatcher, sfStorage $storage, $options = array())
  {
    parent::initialize($dispatcher, $storage, $options);

    $this->initializeUserStatus();
  }