register() public static method

Register the GridFS stream wrapper.
public static register ( string $protocol = 'gridfs' )
$protocol string Protocol to use for stream_wrapper_register()
Beispiel #1
0
 /**
  * Registers the GridFS stream wrapper if it is not already registered.
  */
 private function registerStreamWrapper()
 {
     if (in_array(self::$streamWrapperProtocol, stream_get_wrappers())) {
         return;
     }
     StreamWrapper::register(self::$streamWrapperProtocol);
 }