• Jeremy Mikola's avatar
    PHPLIB-215: Accessor method for GridFS stream file document · 57b40124
    Jeremy Mikola authored
    This adds Bucket::getFileDocumentForStream() and Bucket::getFileIdForStream() methods, the latter of which was renamed from getIdFromStream().
    
    Additionally, this replaces the getId() method in both internal stream classes with a getFile() method. The debug output for ReadableStream has also been simplified to include the entire file document instead of ID, chunkSize, and length.
    57b40124
ReadableStream.php 5.68 KB