Phalcon\Db\Adapter\MongoDB\GridFS\StreamWrapper::initReadableStream PHP Method

initReadableStream() private method

Initialize the internal stream for reading.
See also: StreamWrapper::stream_open()
private initReadableStream ( ) : boolean
return boolean
    private function initReadableStream()
    {
        $context = stream_context_get_options($this->context);
        $this->stream = new ReadableStream($context[$this->protocol]['collectionWrapper'], $context[$this->protocol]['file']);
        return true;
    }