public static function useStreamWrappers() {
    $swift = stream_wrapper_register(
      \HPCloud\Storage\ObjectStorage\StreamWrapper::DEFAULT_SCHEME,
      '\HPCloud\Storage\ObjectStorage\StreamWrapper'
    );

    $swiftfs = stream_wrapper_register(
      \HPCloud\Storage\ObjectStorage\StreamWrapperFS::DEFAULT_SCHEME,
      '\HPCloud\Storage\ObjectStorage\StreamWrapperFS'
    );

    return ($swift && $swiftfs);
  }
public static function useStreamWrappers() {
    $swift = stream_wrapper_register(
      \HPCloud\Storage\ObjectStorage\StreamWrapper::DEFAULT_SCHEME,
      '\HPCloud\Storage\ObjectStorage\StreamWrapper'
    );

    $swiftfs = stream_wrapper_register(
      \HPCloud\Storage\ObjectStorage\StreamWrapperFS::DEFAULT_SCHEME,
      '\HPCloud\Storage\ObjectStorage\StreamWrapperFS'
    );

    return ($swift && $swiftfs);
  }
public static function useStreamWrappers ( ) { $ swift = stream_wrapper_register ( \ HPCloud \ Storage \ ObjectStorage \ StreamWrapper :: DEFAULT_SCHEME , '\HPCloud\Storage\ObjectStorage\StreamWrapper' ) ; $ swiftfs = stream_wrapper_register ( \ HPCloud \ Storage \ ObjectStorage \ StreamWrapperFS :: DEFAULT_SCHEME , '\HPCloud\Storage\ObjectStorage\StreamWrapperFS' ) ; return ( $ swift && $ swiftfs ) ; }
Register stream wrappers for HPCloud.

This register the ObjectStorage stream wrappers, which allow you to access
ObjectStorage through standard file access mechanisms.

@code
// Enable stream wrapper.
Bootstrap::useStreamWrappers();

// Create a context resource.
$cxt = stream_context_create(array(
'tenantid' => '12de21',
'account' => '123454321',
'secret' => 'f78saf7hhlll',
'endpoint' => 'https://identity.hpcloud.com' // <-- not real URL!
));

// Get the contents of a Swift object.
$content = file_get_contents('swift://public/notes.txt', 'r', FALSE, $cxt);
@endcode
Register stream wrappers for HPCloud .