public function FileSystem::__construct

public FileSystem::__construct(StreamWrapperManagerInterface $stream_wrapper_manager, Settings $settings, LoggerInterface $logger)

Constructs a new FileSystem.

Parameters

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

\Drupal\Core\Site\Settings $settings: The site settings.

\Psr\Log\LoggerInterface $logger: The file logger channel.

File

core/lib/Drupal/Core/File/FileSystem.php, line 55

Class

FileSystem
Provides helpers to operate on files and stream wrappers.

Namespace

Drupal\Core\File

Code

public function __construct(StreamWrapperManagerInterface $stream_wrapper_manager, Settings $settings, LoggerInterface $logger) {
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->settings = $settings;
  $this->logger = $logger;
}

© 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!File!FileSystem.php/function/FileSystem::__construct/8.1.x