public function CleanerTablesClearEventSubscriber::__construct in Cleaner 8.2
CleanerTablesClearEventSubscriber 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/ CleanerTablesClearEventSubscriber.php, line 58
Class
- CleanerTablesClearEventSubscriber
- Class CleanerTablesClearEventSubscriber.
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');
}