public StreamWrapperManagerInterface::getViaUri($uri)
Returns a reference to the stream wrapper class responsible for a URI.
The scheme determines the stream wrapper class that should be used by consulting the stream wrapper registry.
string $uri: A stream, referenced as "scheme://target".
\Drupal\Core\StreamWrapper\StreamWrapperInterface|bool Returns a new stream wrapper object appropriate for the given URI or FALSE if no registered handler could be found. For example, a URI of "private://example.txt" would return a new private stream wrapper object (Drupal\Core\StreamWrapper\PrivateStream).
public function getViaUri($uri);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StreamWrapper!StreamWrapperManagerInterface.php/function/StreamWrapperManagerInterface::getViaUri/8.1.x