You are here

public function UriLocator::__construct in Libraries API 8.3

Constructs a URI locator.

Parameters

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

string $uri: The URI to check.

File

src/Plugin/libraries/Locator/UriLocator.php, line 50

Class

UriLocator
Provides a locator utilizing a URI.

Namespace

Drupal\libraries\Plugin\libraries\Locator

Code

public function __construct(StreamWrapperManagerInterface $stream_wrapper_manager, $uri) {
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->uri = (string) $uri;
}