public static function createSentry(
		UserProviderInterface $userProvider = null,
		GroupProviderInterface $groupProvider = null,
		ThrottleProviderInterface $throttleProvider = null,
		SessionInterface $session = null,
		CookieInterface $cookie = null,
		$ipAddress = null
	)
	{
		$userProvider = $userProvider ?: new UserProvider(new NativeHasher);

		return new BaseSentry(
			$userProvider,
			$groupProvider    ?: new GroupProvider,
			$throttleProvider ?: new ThrottleProvider($userProvider),
			$session          ?: new NativeSession,
			$cookie           ?: new NativeCookie,
			$ipAddress        ?: static::guessIpAddress()
		);
	}
public static function createSentry(
		UserProviderInterface $userProvider = null,
		GroupProviderInterface $groupProvider = null,
		ThrottleProviderInterface $throttleProvider = null,
		SessionInterface $session = null,
		CookieInterface $cookie = null,
		$ipAddress = null
	)
	{
		$userProvider = $userProvider ?: new UserProvider(new NativeHasher);

		return new BaseSentry(
			$userProvider,
			$groupProvider    ?: new GroupProvider,
			$throttleProvider ?: new ThrottleProvider($userProvider),
			$session          ?: new NativeSession,
			$cookie           ?: new NativeCookie,
			$ipAddress        ?: static::guessIpAddress()
		);
	}
public static function createSentry ( UserProviderInterface $ userProvider = null , GroupProviderInterface $ groupProvider = null , ThrottleProviderInterface $ throttleProvider = null , SessionInterface $ session = null , CookieInterface $ cookie = null , $ ipAddress = null ) { $ userProvider = $ userProvider ? : new UserProvider ( new NativeHasher ) ; return new BaseSentry ( $ userProvider , $ groupProvider ? : new GroupProvider , $ throttleProvider ? : new ThrottleProvider ( $ userProvider ) , $ session ? : new NativeSession , $ cookie ? : new NativeCookie , $ ipAddress ? : static :: guessIpAddress ( ) ) ; }
Creates a Sentry instance.

@param  \Cartalyst\Sentry\Users\ProviderInterface $userProvider
@param  \Cartalyst\Sentry\Groups\ProviderInterface $groupProvider
@param  \Cartalyst\Sentry\Throttling\ProviderInterface $throttleProvider
@param  \Cartalyst\Sentry\Sessions\SessionInterface $session
@param  \Cartalyst\Sentry\Cookies\CookieInterface $cookie
@param  string $ipAddress
@return \Cartalyst\Sentry\Sentry
Creates a Sentry instance .