public function CleanerWatchdogClearEventSubscriber::__construct in Cleaner 8.2
CleanerWatchdogClearEventSubscriber constructor.
Parameters
\Drupal\Core\Database\Connection $database: Database connection.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory: Logger channel factory.
File
- src/
EventSubscriber/ CleanerWatchdogClearEventSubscriber.php, line 57
Class
- CleanerWatchdogClearEventSubscriber
- Class CleanerWatchdogClearEventSubscriber.
Namespace
Drupal\cleaner\EventSubscriberCode
public function __construct(Connection $database, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_channel_factory) {
$this->database = $database;
$this->config = $config_factory
->get('cleaner.settings');
$this->loggerChannel = $logger_channel_factory
->get('cleaner');
}