protected function getAdapter(MongoClient $client, array $config)
    {
        $fs = $client->selectDB($config['database'])->getGridFS();

        return new GridFSAdapter($fs);
    }
protected function getAdapter(MongoClient $client, array $config)
    {
        $fs = $client->selectDB($config['database'])->getGridFS();

        return new GridFSAdapter($fs);
    }
protected function getAdapter ( MongoClient $ client , array $ config ) { $ fs = $ client -> selectDB ( $ config [ 'database' ] ) -> getGridFS ( ) ; return new GridFSAdapter ( $ fs ) ; }
Get the gridfs adapter.

@param \MongoClient $client
@param string[]     $config

@return \League\Flysystem\GridFS\GridFSAdapter
Get the gridfs adapter .