You are here

public function LogRotator::__construct in File Log 8

Same name and namespace in other branches
  1. 2.0.x src/LogRotator.php \Drupal\filelog\LogRotator::__construct()

LogRotator constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config.factory service.

\Drupal\Core\State\StateInterface $state: The state service.

\Drupal\Core\Utility\Token $token: The token service.

\Drupal\Component\Datetime\TimeInterface $time: The datetime.time service.

\Drupal\filelog\LogFileManagerInterface $fileManager: The filelog service.

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

File

src/LogRotator.php, line 83

Class

LogRotator
Log rotation cron service.

Namespace

Drupal\filelog

Code

public function __construct(ConfigFactoryInterface $configFactory, StateInterface $state, Token $token, TimeInterface $time, LogFileManagerInterface $fileManager, FileSystemInterface $fileSystem) {
  $this->config = $configFactory
    ->get('filelog.settings');
  $this->state = $state;
  $this->token = $token;
  $this->time = $time;
  $this->fileManager = $fileManager;
  $this->fileSystem = $fileSystem;
}