function ServiceDependencyStreamWrapper::__construct

File

core/modules/system/tests/modules/stream_wrapper_service_test/src/StreamWrapper/ServiceDependencyStreamWrapper.php, line 20

Class

ServiceDependencyStreamWrapper
A stream wrapper that depends on a service.

Namespace

Drupal\stream_wrapper_service_test\StreamWrapper

Code

public function __construct() {
  $this->streamWrapperManager = \Drupal::service('stream_wrapper_service_test.dependency');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.