classes/Cloud/Storage/StorageManager.php
public static function storageInstance() {
		if (self::$instance) {
			return self::$instance;
		}

		if (!isset(self::$registry[self::driver()])) {
			throw new StorageException("Invalid driver '".self::driver()."'");
		}

		$class = self::$registry[self::driver()];
		self::$instance = new $class();

		return self::$instance;
	}
public static function storageInstance() {
		if (self::$instance) {
			return self::$instance;
		}

		if (!isset(self::$registry[self::driver()])) {
			throw new StorageException("Invalid driver '".self::driver()."'");
		}

		$class = self::$registry[self::driver()];
		self::$instance = new $class();

		return self::$instance;
	}
public static function storageInstance ( ) { if ( self :: $ instance ) { return self :: $ instance ; } if ( ! isset ( self :: $ registry [ self :: driver ( ) ] ) ) { throw new StorageException ( "Invalid driver '" . self :: driver ( ) . "'" ) ; } $ class = self :: $ registry [ self :: driver ( ) ] ; self :: $ instance = new $ class ( ) ; return self :: $ instance ; }
Gets the currently configured storage interface.

@throws StorageException
@return StorageInterface
Gets the currently configured storage interface .