/** * Returns the stream instance by the uri scheme in path. * * @param string $path * * @return StreamInterface */ private function getStreamByPathScheme($path) { $scheme = parse_url($path, PHP_URL_SCHEME); return $this->streamManager->getStream($scheme); }