private function initProtocol($path) { $parts = explode('://', $path, 2); $this->protocol = $parts[0] ?: 'gridfs'; }