You are here

public function LogFileManager::__construct in File Log 8

Same name in this branch
  1. 8 src/LogFileManager.php \Drupal\filelog\LogFileManager::__construct()
  2. 8 src/ProxyClass/LogFileManager.php \Drupal\filelog\ProxyClass\LogFileManager::__construct()
Same name and namespace in other branches
  1. 2.0.x src/LogFileManager.php \Drupal\filelog\LogFileManager::__construct()

LogFileManager constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config_factory service.

\Drupal\Core\File\FileSystemInterface $fileSystem: The file_system service.

File

src/LogFileManager.php, line 40

Class

LogFileManager
Provide file-handling methods for the logfile.

Namespace

Drupal\filelog

Code

public function __construct(ConfigFactoryInterface $configFactory, FileSystemInterface $fileSystem) {
  $this->config = $configFactory
    ->get('filelog.settings');
  $this->fileSystem = $fileSystem;
}