public function ExcludedPathsSubscriber::__construct in Automatic Updates 8.2
Constructs an UpdateSubscriber.
Parameters
string $app_root: The Drupal root.
string $site_path: The current site path, relative to the Drupal root.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager service.
File
- src/
Event/ ExcludedPathsSubscriber.php, line 56
Class
- ExcludedPathsSubscriber
- Defines an event subscriber to exclude certain paths from update operations.
Namespace
Drupal\automatic_updates\EventCode
public function __construct(string $app_root, string $site_path, FileSystemInterface $file_system, StreamWrapperManagerInterface $stream_wrapper_manager) {
$this->appRoot = $app_root;
$this->sitePath = $site_path;
$this->fileSystem = $file_system;
$this->streamWrapperManager = $stream_wrapper_manager;
}