function FileSystem::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/File/FileSystem.php \Drupal\Core\File\FileSystem::__construct()
- 8.9.x core/lib/Drupal/Core/File/FileSystem.php \Drupal\Core\File\FileSystem::__construct()
- 11.x core/lib/Drupal/Core/File/FileSystem.php \Drupal\Core\File\FileSystem::__construct()
Constructs a new FileSystem.
Parameters
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.
\Drupal\Core\Site\Settings $settings: The site settings.
File
-
core/
lib/ Drupal/ Core/ File/ FileSystem.php, line 66
Class
- FileSystem
- Provides helpers to operate on files and stream wrappers.
Namespace
Drupal\Core\FileCode
public function __construct(StreamWrapperManagerInterface $stream_wrapper_manager, Settings $settings) {
$this->streamWrapperManager = $stream_wrapper_manager;
$this->settings = $settings;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.