<?php

/**
 * 用户登录-链接邀请
 *
 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com>
 * @copyright ©2003-2013 phpwind.com
 * @license http://www.phpwind.com
 * @version $Id: PwRegisterDoInviteInjector.php 6177 2012-03-19 03:50:39Z xiaoxia.xuxx $
 * @package src.service.user.srv.register.ingector
 */
class PwLoginDoInviteFriendInjector extends PwBaseHookInjector {
	
	/** 
	 * 链接邀请的注入插件
	 *
	 * @return PwLoginDoInviteFriend
	 */
	public function run() {
		$loginInvite = null;
		$invite = $this->getInput('invite');
		if (2 != Wekit::C('register', 'type') && $invite) {
			Wind::import('SRV:user.srv.login.do.PwLoginDoInviteFriend');
			$loginInvite = new PwLoginDoInviteFriend($this->bp, $invite);
		}
		return $loginInvite;
	}
}
